Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲5.20MB] [CPU: ▲35.84ms] 75% from 4 tests
Analyzing server-side resources used by CodeKit - Custom Codes Editor
Please take the time to fix the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.20MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 73.71 ▲32.05 |
Dashboard /wp-admin | 8.95 ▲5.65 | 92.83 ▲41.80 |
Posts /wp-admin/edit.php | 8.96 ▲5.60 | 79.09 ▲33.65 |
Add New Post /wp-admin/post-new.php | 9.95 ▲4.06 | 141.39 ▲49.21 |
Media Library /wp-admin/upload.php | 8.95 ▲5.73 | 74.57 ▲35.86 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.96 | 68.47 |
Server storage [IO: ▲6.17MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/custom-codes/" and "wp-content/uploads/"
- (new file) wp-content/custom_codes/.empty
Filesystem: 325 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
db_upgraded |
fs_active_plugins |
widget_recent-comments |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
_codes_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CodeKit - Custom Codes Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲110 | 14.25 ▼0.10 | 1.65 ▼0.13 | 42.46 ▲0.39 |
Dashboard /wp-admin | 2,277 ▲99 | 5.57 ▼0.14 | 96.51 ▼7.89 | 75.63 ▲33.86 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 1.96 ▼0.07 | 35.84 ▼0.91 | 35.15 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,758 ▲230 | 23.30 ▼0.02 | 741.50 ▲136.31 | 51.70 ▼0.52 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.23 ▲0.03 | 97.96 ▼15.99 | 78.00 ▲30.38 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,137 | 1.69 | 24.58 | 29.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/custom-codes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- fs_active_plugins
- fs_accounts
- widget_recent-comments
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/custom-codes/lib/views/settings-area.php
- > /wp-content/plugins/custom-codes/lib/permissions.php
- > /wp-content/plugins/custom-codes/lib/compilers/style/scss/scss.php
- > /wp-content/plugins/custom-codes/lib/editor-includes.php
- > /wp-content/plugins/custom-codes/lib/views/description-area.php
- > /wp-content/plugins/custom-codes/lib/release-codes.php
- > /wp-content/plugins/custom-codes/lib/views/editor-area.php
- > /wp-content/plugins/custom-codes/lib/upgrade.php
- > /wp-content/plugins/custom-codes/lib/views/locations-area.php
- > /wp-content/plugins/custom-codes/lib/helper-functions.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Exception/RangeException.php:20
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Formatter/Debug.php:24
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Exception/CompilerException.php:20
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Formatter/Nested.php:25
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Node/Number.php:31
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Formatter/Compact.php:24
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Exception/ParserException.php:20
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Exception/ServerException.php:20
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Formatter/Expanded.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/custom-codes/lib/compilers/style/scss/vendor/scssphp/scssphp/src/Formatter/Compressed.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: You are using too many tags: 21 tag instead of maximum 10
custom-codes/custom-codes.php Passed 13 tests
The main PHP script in "CodeKit - Custom Codes Editor" version 2.3.6 is automatically included on every request by WordPress
67 characters long description:
Your custom SASS, CSS, JS and PHP customizations in same directory.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin87,381 lines of code in 268 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 179 | 11,586 | 21,960 | 46,620 |
JavaScript | 31 | 2,985 | 4,658 | 37,232 |
CSS | 23 | 239 | 45 | 1,441 |
Sass | 2 | 185 | 5 | 783 |
JSON | 8 | 0 | 0 | 656 |
PO File | 1 | 264 | 297 | 539 |
Markdown | 3 | 28 | 0 | 58 |
SVG | 19 | 0 | 0 | 45 |
XML | 2 | 1 | 5 | 7 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
- Method cyclomatic complexity should be reduced to less than 100 (currently 201)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 83.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 201.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 4 | 4.88% |
▷ Concrete classes | 78 | 95.12% |
▷ Final classes | 1 | 1.28% |
Methods | 1,740 | |
▷ Static methods | 234 | 13.45% |
▷ Public methods | 1,023 | 58.79% |
▷ Protected methods | 323 | 18.56% |
▷ Private methods | 394 | 22.64% |
Functions | 188 | |
▷ Named functions | 161 | 85.64% |
▷ Anonymous functions | 27 | 14.36% |
Constants | 228 | |
▷ Global constants | 110 | 48.25% |
▷ Class constants | 118 | 51.75% |
▷ Public constants | 118 | 100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/custom-codes.png | 3.65KB | 1.72KB | ▼ 52.97% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |