Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼2.07ms] Passed 4 tests
A check of server-side resources used by NS Category Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 39.51 ▼4.11 |
Dashboard /wp-admin | 3.88 ▲0.53 | 56.44 ▼8.00 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 62.60 ▲8.91 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 97.31 ▼3.98 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 44.57 ▲7.82 |
NS Category Widget /wp-admin/options-general.php?page=ns-category-widget | 3.71 | 43.20 |
Server storage [IO: ▲0.41MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
nscw_plugin_options |
widget_ns-category-widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for NS Category Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,142 ▲396 | 17.45 ▲3.07 | 8.62 ▲6.88 | 41.75 ▲0.06 |
Dashboard /wp-admin | 2,400 ▲197 | 8.20 ▲3.32 | 169.42 ▲63.45 | 43.56 ▼1.73 |
Posts /wp-admin/edit.php | 2,299 ▲202 | 5.46 ▲3.45 | 100.72 ▲62.10 | 37.70 ▲2.59 |
Add New Post /wp-admin/post-new.php | 1,553 ▲8 | 24.59 ▲1.44 | 741.33 ▲80.61 | 36.24 ▼21.27 |
Media Library /wp-admin/upload.php | 1,435 ▲41 | 5.53 ▲1.29 | 135.98 ▲33.05 | 43.23 ▼1.71 |
NS Category Widget /wp-admin/options-general.php?page=ns-category-widget | 1,178 | 5.13 | 93.07 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- nscw_plugin_options
- widget_ns-category-widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ns-category-widget/widgets/nscw-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Nilambar\\Optioner\\add_action() in wp-content/plugins/ns-category-widget/vendor/ernilambar/optioner/optioner.php:32
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
ns-category-widget/ns-category-widget.php Passed 13 tests
Analyzing the main PHP file in "NS Category Widget" version 3.1.7
74 characters long description:
A widget plugin for listing categories and taxonomies in the way you want.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,770 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 750 | 1,429 | 2,475 |
CSS | 2 | 0 | 12 | 978 |
JavaScript | 6 | 27 | 62 | 166 |
JSON | 3 | 0 | 0 | 149 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 32.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 28 | 19.05% |
▷ Public methods | 121 | 82.31% |
▷ Protected methods | 10 | 6.80% |
▷ Private methods | 16 | 10.88% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 12 | |
▷ Global constants | 9 | 75.00% |
▷ Class constants | 3 | 25.00% |
▷ Public constants | 3 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/css/themes/default/40px.png | 1.84KB | 1.84KB | 0.00% |
public/assets/css/themes/default/32px.png | 3.05KB | 2.88KB | ▼ 5.58% |