77% easy-code-manager

Code Review | Easy Code Manager

WordPress plugin Easy Code Manager scored77%from 54 tests.

About plugin

  • Plugin page: easy-code-manager
  • Plugin version: 10...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 15, 2017
  • Latest release: Sep 5, 2020
  • Number of updates: 17
  • Update frequency: every 66.2 days
  • Top authors: wipeoutmedia (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /16,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼1.22ms] Passed 4 tests

This is a short check of server-side resources used by Easy Code Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2639.77 ▼3.56
Dashboard /wp-admin3.88 ▲0.5853.86 ▲0.68
Posts /wp-admin/edit.php3.99 ▲0.6448.89 ▲0.54
Add New Post /wp-admin/post-new.php6.47 ▲0.5999.93 ▼2.54
Media Library /wp-admin/upload.php3.80 ▲0.5743.01 ▲5.20
Easy Code Manager /wp-admin/admin.php?page=ecm3.8639.87

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 605 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
state.CJTInstallerModel.operations
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Code Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.27 ▼1.102.16 ▲0.4745.02 ▲5.10
Dashboard /wp-admin2,294 ▲915.87 ▲0.9598.30 ▼13.6579.38 ▲33.44
Posts /wp-admin/edit.php2,173 ▲702.09 ▲0.1043.06 ▲6.8343.98 ▲7.62
Add New Post /wp-admin/post-new.php1,602 ▲7123.15 ▼0.10747.46 ▲63.6534.98 ▼14.16
Media Library /wp-admin/upload.php1,464 ▲644.33 ▲0.13103.08 ▼12.8679.51 ▲30.12
Easy Code Manager /wp-admin/admin.php?page=ecm9121.7626.2542.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • state.CJTInstallerModel.operations
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 92× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/easy-code-manager/views/dashboard/metabox/statistics/view.php
    • > /wp-content/plugins/easy-code-manager/framework/developer/interface/block/shortcode/parameters/types/list.php
    • > /wp-content/plugins/easy-code-manager/access.points/manage.accesspoint.php
    • > /wp-content/plugins/easy-code-manager/framework/extensions/extensions.class.php
    • > /wp-content/plugins/easy-code-manager/framework/autoload/loader.php
    • > /wp-content/plugins/easy-code-manager/views/blocks/block/view.php
    • > /wp-content/plugins/easy-code-manager/tables/parameter-typedef.php
    • > /wp-content/plugins/easy-code-manager/framework/developer/lib/template/template.php
    • > /wp-content/plugins/easy-code-manager/tables/pins-blocks-view.php
    • > /wp-content/plugins/easy-code-manager/framework/developer/interface/block/parameters/types/base/scalar.php
  • 61× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'cssJSToolbox' not found in wp-content/plugins/easy-code-manager/views/extensions/plugins-list/public/js/extensions/extensions.localization.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CJT_Framework_Developer_Interface_Block_Shortcode_Parameters_Base_Abstract' not found in wp-content/plugins/easy-code-manager/framework/developer/interface/block/shortcode/parameters/base/scalar.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'cssJSToolbox' not found in wp-content/plugins/easy-code-manager/views/blocks/new/public/js/add-new-block/add-new-block.localization.php:13
    • > PHP Warning
      Use of undefined constant CJTOOLBOX_MODELS_PATH - assumed 'CJTOOLBOX_MODELS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-code-manager/views/blocks/manager/view.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'cssJSToolbox' not found in wp-content/plugins/easy-code-manager/views/installer/notice/public/js/default/default.localization.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CJT_Models_Block_Assignmentpanel_Postbase' not found in wp-content/plugins/easy-code-manager/models/block/assignmentpanel/post.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CJTController' not found in wp-content/plugins/easy-code-manager/framework/mvc/controller-ajax.inc.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'CJTOOLBOX_MODELS_PATH/block.php' (include_path='.:/usr/share/php') in wp-content/plugins/easy-code-manager/views/blocks/manager/view.php on line 7
    • > PHP Warning
      require_once(CJTOOLBOX_FRAMEWORK/autoload/loader.php): failed to open stream: No such file or directory in wp-content/plugins/easy-code-manager/autoload.inc.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'CJT_Models_Block_Assignmentpanel_Wordpress' not found in wp-content/plugins/easy-code-manager/models/block/assignmentpanel/postbase.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Requires php: Version not formatted correctly
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

easy-code-manager/easy-code-manager.php 85% from 13 tests

"Easy Code Manager" version 10...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "10...")
  • Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin44,657 lines of code in 439 files:
LanguageFilesBlank linesComment linesLines of code
CSS3580520720,040
PHP2383,05910,6289,407
LESS861,2221,5857,541
JavaScript571,1203,1993,856
SVG5101,774
Sass1328241,520
JSON300388
SQL11227116
HTML10015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.68
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces8
Traits0
Classes193
▷ Abstract classes4623.83%
▷ Concrete classes14776.17%
▷ Final classes10.68%
Methods983
▷ Static methods929.36%
▷ Public methods84886.27%
▷ Protected methods12412.61%
▷ Private methods111.12%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants178
▷ Global constants5732.02%
▷ Class constants12167.98%
▷ Public constants121100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
69 PNG files occupy 0.23MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
CJTChecker/jQueryDialogCSS/images/ui-icons_ff7519_256x240.png4.44KB4.17KB▼ 6.02%
CJTChecker/jQueryDialogCSS/images/ui-icons_efec9f_256x240.png4.44KB4.17KB▼ 6.02%
CJTChecker/jQueryDialogCSS/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
CJTChecker/jQueryDialogCSS/images/ui-icons_e8e2b5_256x240.png4.44KB4.17KB▼ 6.02%
CJTChecker/jQueryDialogCSS/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%