Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.39ms] Passed 4 tests
An overview of server-side resources used by Custom CSS, JS & PHP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.43 ▼6.45 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.46 ▼2.91 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.93 ▼2.77 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 97.92 ▼5.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.36 ▼0.36 |
Custom PHP /wp-admin/tools.php?page=alg-custom-php | 3.22 | 35.27 |
Custom JS /wp-admin/tools.php?page=alg-custom-js | 3.21 | 35.18 |
Custom CSS /wp-admin/tools.php?page=alg-custom-css | 3.21 | 32.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 21 new options
New WordPress options |
---|
alg_custom_css_front_end_css_position |
alg_custom_css_version |
alg_custom_css_back_end_css |
alg_custom_css_back_end_js |
db_upgraded |
alg_custom_css_back_end_js_position |
can_compress_scripts |
alg_custom_css_front_end_js |
widget_recent-posts |
alg_custom_css_php_enabled |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Custom CSS, JS & PHP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.33 ▼0.07 | 2.37 ▲0.41 | 39.14 ▼3.28 |
Dashboard /wp-admin | 2,210 ▲33 | 5.61 ▲0.04 | 89.61 ▼6.88 | 43.94 ▲1.53 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.04 | 39.43 ▼1.59 | 34.53 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.58 ▲0.55 | 596.01 ▼69.38 | 54.71 ▲1.98 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.20 ▼0.02 | 95.36 ▼7.26 | 43.96 ▲0.73 |
Custom PHP /wp-admin/tools.php?page=alg-custom-php | 842 | 1.99 | 25.32 | 61.27 |
Custom JS /wp-admin/tools.php?page=alg-custom-js | 886 | 1.99 | 22.26 | 29.36 |
Custom CSS /wp-admin/tools.php?page=alg-custom-css | 886 | 1.99 | 23.94 | 38.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 21 options in the database
- alg_custom_css_front_end_css_position
- alg_custom_css_version
- alg_custom_css_back_end_js_position
- alg_custom_css_front_end_css_enabled
- alg_custom_css_back_end_css
- alg_custom_css_php
- can_compress_scripts
- alg_custom_css_back_end_js
- alg_custom_css_front_end_js_position
- theysaidso_admin_options
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: custom javascript, php, js, javascript, custom css...
custom-css/custom-css.php Passed 13 tests
This is the main PHP file of "Custom CSS, JS & PHP" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Just another custom CSS, JavaScript & PHP tool for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin485 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 243 | 485 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 24.33 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected