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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼13.54ms] Passed 4 tests
Server-side resources used by WPArchivesTree
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.07 ▼2.60 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.63 ▼6.71 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.61 ▼4.70 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.63 ▼40.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.60 ▲2.50 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wparchivestree_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPArchivesTree
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.35 ▼0.18 | 1.71 ▼0.15 | 46.03 ▲4.81 |
Dashboard /wp-admin | 2,198 ▲30 | 5.58 ▲0.00 | 86.32 ▼8.78 | 38.33 ▼6.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.02 | 36.87 ▲0.16 | 34.85 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.04 ▼0.01 | 652.07 ▲16.50 | 55.75 ▲2.56 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.28 ▲0.08 | 103.07 ▼1.02 | 45.39 ▼2.06 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_wparchivestree_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wparchivestree/frontend.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wparchivestree/wparchivestree.php:31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wparchivestree/frontend.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wparchivestree/frontend.php:9
- > PHP Notice
Undefined variable: instance in wp-content/plugins/wparchivestree/frontend.php on line 3
- > PHP Notice
Undefined variable: instance in wp-content/plugins/wparchivestree/frontend.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: tree, widget, archives, treeview, archive
wparchivestree/wparchivestree.php Passed 13 tests
The main PHP script in "WPArchivesTree" version 1.1 is automatically included on every request by WordPress
66 characters long description:
A widget to display a treeview of articles group by month and year
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin174 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 35 | 153 |
CSS | 1 | 5 | 0 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/1416795695_arrow-right-01-24.png | 0.43KB | 0.28KB | ▼ 33.94% |
screenshot-2.png | 22.67KB | 11.48KB | ▼ 49.35% |
img/1416797994_arrow-down-01-16.png | 0.33KB | 0.28KB | ▼ 14.88% |
img/1416795699_arrow-right-01-16.png | 0.28KB | 0.20KB | ▼ 29.17% |
screenshot-1.png | 4.81KB | 3.08KB | ▼ 36.02% |