Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/vnecategory/vn_category.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; VNEcategory has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼194.16ms] Passed 4 tests
Analyzing server-side resources used by VNEcategory
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.92 | 5.23 ▼15.97 |
Dashboard /wp-admin | 1.82 ▼1.23 | 5.24 ▼36.72 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 5.25 ▼40.47 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.61 | 4.58 ▼664.50 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.55 ▼34.96 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_vnecategory |
Browser metrics Passed 4 tests
Checking browser requirements for VNEcategory
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲90 | 15.95 ▲0.42 | 7.43 ▼2.80 | 43.76 ▼1.67 |
Dashboard /wp-admin | 2,969 ▲35 | 5.88 ▼0.21 | 142.31 ▼10.00 | 109.20 ▼6.70 |
Posts /wp-admin/edit.php | 2,738 ▼1 | 2.70 ▲0.02 | 64.24 ▼1.70 | 87.75 ▼9.10 |
Add New Post /wp-admin/post-new.php | 1,500 ▼172 | 18.85 ▲0.06 | 355.64 ▼25.88 | 109.83 ▲0.19 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.04 ▲0.02 | 149.65 ▼9.99 | 119.20 ▼1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/vnecategory/vn_category.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; VNEcategory has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- widget_vnecategory
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 everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vnecategory/vn_category.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Categories structure), #2 (Widget configuration), #3 (Display in fronend)
vnecategory/vn_category.php 92% from 13 tests
The main PHP file in "VNEcategory" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vnecategory.php" instead of "vn_category.php")
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
Everything looks great! No dangerous files found in this plugin234 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 22 | 165 |
CSS | 1 | 2 | 0 | 69 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.02KB | 10.36KB | ▼ 50.70% |
screenshot-2.png | 11.32KB | 6.36KB | ▼ 43.86% |
screenshot-3.png | 57.04KB | 20.15KB | ▼ 64.67% |