Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.91ms] Passed 4 tests
A check of server-side resources used by NS Custom Css
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 33.98 ▼6.01 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.34 ▼5.76 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.27 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.34 ▼8.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.76 ▲2.15 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 3.19 | 29.46 |
Custom Css /wp-admin/admin.php?page=ns-custom-css/ns-admin-options/ns_admin_option_dashboard.php | 3.25 | 33.13 |
/wp-admin/admin.php?page=plugineye238 | 3.22 | 29.01 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for NS Custom Css
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.80 ▲0.41 | 1.58 ▼0.41 | 42.12 ▼5.44 |
Dashboard /wp-admin | 2,239 ▲48 | 5.83 ▲0.92 | 102.07 ▼4.42 | 89.45 ▲46.97 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.00 ▼0.04 | 36.57 ▼6.84 | 33.34 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,695 ▲176 | 22.35 ▼0.58 | 743.51 ▲100.07 | 57.81 ▲0.47 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.20 ▲0.04 | 95.37 ▼9.68 | 81.28 ▲37.43 |
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version | 684 | 1.14 | 6.98 | 16.70 |
Custom Css /wp-admin/admin.php?page=ns-custom-css/ns-admin-options/ns_admin_option_dashboard.php | 916 | 2.03 | 23.28 | 30.57 |
/wp-admin/admin.php?page=plugineye238 | 903 | 2.03 | 25.91 | 25.72 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-custom-css/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings Custom Css.), #2 (View graphics example.), #3 (View source after adding code.)
ns-custom-css/ns-custom-css.php Passed 13 tests
This is the main PHP file of "NS Custom Css" version 2.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
This plugin allow to add your custom css
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin931 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 57 | 181 | 579 |
CSS | 3 | 22 | 8 | 276 |
PO File | 1 | 16 | 16 | 48 |
JavaScript | 1 | 4 | 0 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 26.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 73.68% |
Functions | 16 | |
▷ Named functions | 6 | 37.50% |
▷ Anonymous functions | 10 | 62.50% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.61MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ns-admin-options/img/backend-sidebar-icon.png | 1.48KB | 0.54KB | ▼ 63.47% |
ns-admin-options/img/ns-theme-promo.png | 29.37KB | 8.96KB | ▼ 69.50% |
screenshot-2.png | 22.40KB | 5.38KB | ▼ 75.99% |
screenshot-3.png | 518.52KB | 176.23KB | ▼ 66.01% |
screenshot-1.png | 32.11KB | 7.46KB | ▼ 76.78% |