Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼38.47ms] Passed 4 tests
A check of server-side resources used by Custom CSS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 16.63 ▼23.31 |
Dashboard /wp-admin | 3.86 ▲0.55 | 19.02 ▼29.49 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 23.75 ▼29.84 |
Add New Post /wp-admin/post-new.php | 3.86 ▼2.03 | 16.67 ▼71.22 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 20.53 ▼15.80 |
Custom Code /wp-admin/edit.php?post_type=ff-customcode-item | 3.86 | 16.71 |
Server storage [IO: ▲11.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 712 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Custom CSS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.22 ▼1.18 | 1.83 ▲0.10 | 45.57 ▼2.66 |
Dashboard /wp-admin | 2,246 ▲58 | 5.81 ▼0.03 | 100.24 ▼2.00 | 43.43 ▲1.25 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.05 ▲0.04 | 40.15 ▼5.51 | 39.86 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 17.56 ▼5.65 | 663.30 ▲52.21 | 54.93 ▲3.04 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.25 ▲0.00 | 99.59 ▼4.20 | 45.63 ▼1.01 |
Custom Code /wp-admin/edit.php?post_type=ff-customcode-item | 1,101 | 2.10 | 32.48 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+66
fopen(wp-content/uploads/freshframework/less_scss/last_deletion.frs): failed to open stream: No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ff-customcode-item
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+66
fopen(wp-content/uploads/freshframework/less_scss/last_deletion.frs): failed to open stream: No such file or directory
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/custom-css-editor/fresh-framework/framework/extern/iconfonts/fonts.php
- 334× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/custom-css-editor/fresh-framework/framework/extern/less/lib/Less/Exception/Chunk.php on line 155
- > PHP Fatal error
Uncaught Error: Class 'ffOptionsWalker' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/options/walkers/class.ffOptionsArrayConvertor.php:2
- > PHP Fatal error
Uncaught Error: Class 'ffFactoryAbstract' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/dataStorage/factories/class.ffDataStorage_Factory.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/options/walkers/printers/class.ffOptionsPrinterDataBoxGenerator.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/adminScreens/metaBoxes/class.ffMetaBoxView.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/query/posts/items/class.ffPostGetter.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/query/getters/____class.ffPostGetter.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/shortcodes/class.ffShortcodeManager.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffBasicObject' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/assetsIncluding/lessScssCompiler/class.ffLessSystemColorLibraryBackend.php:3
- > PHP Fatal error
Uncaught Error: Class 'ffFactoryAbstract' not found in wp-content/plugins/custom-css-editor/fresh-framework/framework/query/attachments/items/class.ffAttachmentCollection_Factory.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: custom code, custom js, custom css
custom-css-editor/freshplugin.php 92% from 13 tests
The principal PHP file in "Custom CSS" v. 1.4.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-css-editor.php" instead of "freshplugin.php")
Code Analysis 97% from 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 detected105,156 lines of code in 593 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 376 | 12,732 | 11,779 | 37,792 |
JSON | 2 | 0 | 0 | 24,734 |
JavaScript | 73 | 4,921 | 5,502 | 21,086 |
LESS | 74 | 1,796 | 1,748 | 8,257 |
CSS | 38 | 329 | 527 | 6,969 |
SVG | 24 | 0 | 0 | 5,950 |
XML | 2 | 0 | 0 | 286 |
HTML | 2 | 2 | 0 | 75 |
Markdown | 2 | 4 | 0 | 7 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 156)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 446.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 156.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 425 | |
▷ Abstract classes | 23 | 5.41% |
▷ Concrete classes | 402 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 4,062 | |
▷ Static methods | 74 | 1.82% |
▷ Public methods | 2,269 | 55.86% |
▷ Protected methods | 1,139 | 28.04% |
▷ Private methods | 654 | 16.10% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 372 | |
▷ Global constants | 99 | 26.61% |
▷ Class constants | 273 | 73.39% |
▷ Public constants | 273 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fresh-framework/framework/extern/jquery-ui/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
fresh-framework/framework/adminScreens/assets/images/modal-library-size-slider-control-right@2x.png | 5.84KB | 0.11KB | ▼ 98.13% |
fresh-framework/framework/adminScreens/assets/images/modal-library-size-slider-control-right.png | 5.81KB | 0.10KB | ▼ 98.20% |
fresh-framework/framework/adminScreens/assets/images/repeatable_boxed_icon_plus@2x.png | 5.83KB | 0.11KB | ▼ 98.14% |
fresh-framework/framework/extern/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |