Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.60ms] Passed 4 tests
Analyzing server-side resources used by WP Developer Support
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.89 ▼2.45 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.01 ▼2.64 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.65 ▼0.11 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 97.21 ▲1.52 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.54 ▼9.20 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Developer Support
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 13.66 ▼0.69 | 7.66 ▲5.75 | 45.58 ▼0.32 |
Dashboard /wp-admin | 2,218 ▲41 | 5.60 ▼0.01 | 90.80 ▼13.16 | 42.89 ▼0.28 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.02 ▲0.04 | 41.82 ▲6.25 | 35.78 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.36 ▼0.24 | 610.39 ▼62.76 | 43.18 ▼29.50 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.26 ▲0.02 | 97.05 ▼28.43 | 44.63 ▼5.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-developer-support/inc/frontend/views/html-wpdevcs-admin-developer-support-frontend-display.php
- > /wp-content/plugins/wp-developer-support/inc/admin/views/partials-html-form-view.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-developer-support/inc/admin/views/partials-html-form-view.php:156
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (WordPress Functions)
wp-developer-support/wpdevcs-admin-developer-support.php 77% from 13 tests
The main file in "WP Developer Support" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-developer-support.php" instead of "wpdevcs-admin-developer-support.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,164 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 870 | 531 | 3,853 |
JavaScript | 3 | 73 | 50 | 270 |
HTML | 1 | 5 | 0 | 41 |
CSS | 2 | 0 | 10 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/assets/images/wpcsdev.png | 3.63KB | 2.51KB | ▼ 30.93% |
inc/admin/assets/images/wpdevgraphics.png | 3.63KB | 2.51KB | ▼ 30.93% |