63% code-manager

Code Review | Code Manager

WordPress plugin Code Manager scored63%from 54 tests.

About plugin

  • Plugin page: code-manager
  • Plugin version: 1.0.30
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-6.4
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Dec 1, 2023
  • Number of updates: 50
  • Update frequency: every 58.2 days
  • Top authors: peterschulznl (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /16,881 total downloads

Benchmarks

Plugin footprint 47% 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: ▲5.11MB] [CPU: ▲25.11ms] 75% from 4 tests

A check of server-side resources used by Code Manager
The following require your attention
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.11MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.95 ▲5.4860.82 ▲18.65
Dashboard /wp-admin8.97 ▲5.6676.62 ▲24.45
Posts /wp-admin/edit.php8.97 ▲5.6182.79 ▲34.12
Add New Post /wp-admin/post-new.php9.56 ▲3.67121.92 ▲25.28
Media Library /wp-admin/upload.php8.97 ▲5.7463.63 ▲32.05
Code Manager /wp-admin/options-general.php?page=code_manager_settings8.9764.30
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9763.87

Server storage [IO: ▲3.48MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 262 new files
Database: 1 new table, 10 new options
New tables
wp_code_manager
New WordPress options
can_compress_scripts
code_manager_version
fs_active_plugins
db_upgraded
fs_accounts
fs_debug_mode
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Code Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5514.59 ▲0.251.46 ▼0.4728.00 ▼17.99
Dashboard /wp-admin2,229 ▲485.53 ▼0.1996.50 ▼7.4444.55 ▼2.34
Posts /wp-admin/edit.php2,138 ▲381.96 ▼0.0540.30 ▼3.1138.22 ▲2.89
Add New Post /wp-admin/post-new.php1,547 ▲2123.02 ▼0.25598.86 ▼58.9056.60 ▲6.49
Media Library /wp-admin/upload.php1,440 ▲434.19 ▼0.0796.45 ▼1.4544.23 ▲1.98
Code Manager /wp-admin/options-general.php?page=code_manager_settings1,0982.4543.1253.33
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1021.6626.6727.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/code-manager/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_code_manager
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • fs_debug_mode
    • code_manager_version
    • can_compress_scripts
    • fs_active_plugins
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_accounts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Code_Manager\\WP_List_Table' not found in wp-content/plugins/code-manager/Code_Manager/Code_Manager_List.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in code-manager/assets to your readme.txt
Please take inspiration from this readme.txt

code-manager/code-manager.php 92% from 13 tests

"Code Manager" version 1.0.30's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin39,907 lines of code in 181 files:
LanguageFilesBlank linesComment linesLines of code
PHP1498,87919,76837,909
JavaScript91531001,428
CSS1946403
Markdown2820152
JSON20015

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity68.36
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes75
▷ Abstract classes22.67%
▷ Concrete classes7397.33%
▷ Final classes00.00%
Methods1,496
▷ Static methods26317.58%
▷ Public methods1,03669.25%
▷ Protected methods694.61%
▷ Private methods39126.14%
Functions113
▷ Named functions11299.12%
▷ Anonymous functions10.88%
Constants177
▷ Global constants11967.23%
▷ Class constants5832.77%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
35 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
assets/css/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/css/images/ui-icons_4b8e0b_256x240.png4.57KB4.18KB▼ 8.43%
assets/css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
assets/css/images/ui-bg_glass_100_fdf5ce_1x400.png0.34KB0.16KB▼ 54.02%