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
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.66ms] Passed 4 tests
A check of server-side resources used by Easy Custom Css/Js
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.45 ▼0.53 |
Dashboard /wp-admin | 3.44 ▲0.13 | 47.58 ▼2.40 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.77 ▲1.31 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 78.20 ▼17.01 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.69 ▲2.62 |
Server storage [IO: ▲6.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 347 new files
Database: no new tables, 7 new options
New WordPress options |
---|
spcc_plugin_version |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Custom Css/Js
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 14.05 ▼0.69 | 1.71 ▼0.30 | 35.00 ▼11.10 |
Dashboard /wp-admin | 2,233 ▲44 | 5.98 ▲1.04 | 115.54 ▼8.39 | 80.16 ▲35.17 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.90 ▲0.89 | 42.74 ▲5.11 | 40.66 ▲6.40 |
Add New Post /wp-admin/post-new.php | 6,550 ▲5,014 | 29.29 ▲6.14 | 1,001.53 ▲325.54 | 150.68 ▲79.00 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 5.38 ▲1.10 | 97.53 ▼16.22 | 87.37 ▲39.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/easy-custom-cssjs/spcc_class.php+27
Non-static method wpspcc::spcc_delete_options() should not be called statically
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- spcc_plugin_version
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/easy-custom-cssjs/template/form.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: stylesheet, custom js, site css, single post css, js...
easy-custom-cssjs/spcc-custom-css.php 77% from 13 tests
The principal PHP file in "Easy Custom Css/Js" v. 2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: Name the main plugin file the same as the plugin slug ("easy-custom-cssjs.php" instead of "spcc-custom-css.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin12,598 lines of code in 344 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,482 | 754 | 6,824 |
CSS | 2 | 7 | 11 | 5,270 |
JavaScript | 337 | 34 | 0 | 504 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 130.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 406 | |
▷ Static methods | 8 | 1.97% |
▷ Public methods | 81 | 19.95% |
▷ Protected methods | 325 | 80.05% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.18KB | 0.26KB | ▼ 78.28% |