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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.54ms] Passed 4 tests
Server-side resources used by PubExchange
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.05 ▲1.02 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.52 ▲1.71 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.11 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.63 ▼13.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 37.40 ▲3.83 |
PubExchange /wp-admin/options-general.php?page=pubexchange_widget | 3.26 | 31.70 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PubExchange
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.44 ▲0.06 | 1.84 ▲0.19 | 40.87 ▼0.42 |
Dashboard /wp-admin | 2,207 ▲25 | 5.83 ▲0.93 | 103.08 ▼1.29 | 41.47 ▼0.53 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.02 | 34.12 ▼5.57 | 30.25 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 18.32 ▲0.66 | 618.11 ▼75.69 | 54.34 ▲1.80 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.02 | 99.34 ▼20.12 | 42.20 ▼6.35 |
PubExchange /wp-admin/options-general.php?page=pubexchange_widget | 923 | 2.03 | 31.09 | 28.53 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pubexchange/widget.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pubexchange/settings.php:68
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pubexchange/widget.php:3
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
pubexchange/pubexchange_widget.php 92% from 13 tests
The principal PHP file in "PubExchange" v. 2.0.6 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pubexchange.php" instead of "pubexchange_widget.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
There were no executable files found in this plugin358 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 17 | 350 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 |
img/qmark.png | 0.42KB | 0.35KB | ▼ 17.44% |
img/pubexchange.png | 1.05KB | 1.09KB | 0.00% |