84% cyclos

Code Review | Cyclos

WordPress plugin Cyclos scored84%from 54 tests.

About plugin

  • Plugin page: cyclos
  • Plugin version: 4.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 12, 2015
  • Latest release: Sep 8, 2023
  • Number of updates: 69
  • Update frequency: every 45.0 days
  • Top authors: luisfpg (37.68%)rozijntje (21.74%)rleon.uy (17.39%)augusto1995 (14.49%)Cyclos (14.49%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.67ms] Passed 4 tests

Analyzing server-side resources used by Cyclos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.85 ▼6.45
Dashboard /wp-admin3.38 ▲0.0448.53 ▼17.68
Posts /wp-admin/edit.php3.44 ▲0.0852.50 ▼1.68
Add New Post /wp-admin/post-new.php5.96 ▲0.0896.27 ▼4.26
Media Library /wp-admin/upload.php3.31 ▲0.0836.24 ▼2.29
Cyclos /wp-admin/options-general.php?page=cyclos-options3.2833.37

Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
cyclos_version
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Cyclos
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.154.75 ▲3.0543.64 ▼0.39
Dashboard /wp-admin2,207 ▲155.84 ▼0.0995.13 ▼20.9138.25 ▼3.57
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0339.34 ▼1.9234.11 ▼1.18
Add New Post /wp-admin/post-new.php1,544 ▲13822.99 ▲4.95669.74 ▲36.1552.18 ▼3.84
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.0599.61 ▼16.6043.72 ▼5.33
Cyclos /wp-admin/options-general.php?page=cyclos-options1,2812.1127.5036.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cyclos/templates/login-form.php:113
    • > PHP Fatal error
      Uncaught Error: Class 'Cyclos\\Services\\Cyclos4\\Service' not found in wp-content/plugins/cyclos/app/Services/Cyclos4/AccessClientService.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Cyclos\\Services\\Cyclos4\\Service' not found in wp-content/plugins/cyclos/app/Services/Cyclos4/CaptchaService.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Cyclos\\Services\\Cyclos4\\Service' not found in wp-content/plugins/cyclos/app/Services/Cyclos4/UsersService.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cyclos/app/Widgets/LoginWidget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Cyclos\\Services\\Cyclos4\\Service' not found in wp-content/plugins/cyclos/app/Services/Cyclos4/AuthService.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Cyclos\\Services\\Cyclos4\\Service' not found in wp-content/plugins/cyclos/app/Services/Cyclos4/SessionsService.php:13
    • > PHP Notice
      Undefined variable: cyclos_is_forgot_password_enabled in wp-content/plugins/cyclos/templates/login-form.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

cyclos/cyclos.php Passed 13 tests

The principal PHP file in "Cyclos" v. 4.1.1 is loaded by WordPress automatically on each request
57 characters long description:
Integrates Cyclos functionality into your WordPress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,574 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP203891,4021,993
JavaScript111454291,138
Sass56867356
CSS212087

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.79
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods130
▷ Static methods32.31%
▷ Public methods10983.85%
▷ Protected methods2116.15%
▷ Private methods00.00%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants22
▷ Global constants627.27%
▷ Class constants1672.73%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected