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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.03ms] Passed 4 tests
Server-side resources used by This-or-That
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 34.91 ▼8.11 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.76 ▲0.24 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.50 ▲6.13 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 80.26 ▼10.30 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.33 ▲6.05 |
Add item /wp-admin/post-new.php?post_type=this-or-that | 3.46 | 47.42 |
All items /wp-admin/edit.php?post_type=this-or-that | 3.38 | 40.71 |
Categories /wp-admin/edit-tags.php?taxonomy=thisorthat_category&post_type=this-or-that | 3.33 | 31.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for This-or-That
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 13.62 ▼0.75 | 6.41 ▲3.46 | 41.74 ▼3.81 |
Dashboard /wp-admin | 2,241 ▲53 | 5.87 ▲0.97 | 111.50 ▲6.58 | 43.60 ▼5.94 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.00 ▼0.13 | 41.45 ▲1.48 | 35.79 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,579 ▲55 | 18.11 ▼4.89 | 611.03 ▼18.15 | 68.33 ▲16.02 |
Media Library /wp-admin/upload.php | 1,426 ▲35 | 4.23 ▲0.03 | 94.23 ▼5.22 | 39.99 ▼3.96 |
Add item /wp-admin/post-new.php?post_type=this-or-that | 2,464 | 7.88 | 187.23 | 71.18 |
All items /wp-admin/edit.php?post_type=this-or-that | 1,200 | 1.96 | 30.66 | 31.66 |
Categories /wp-admin/edit-tags.php?taxonomy=thisorthat_category&post_type=this-or-that | 1,275 | 2.14 | 26.46 | 26.37 |
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 were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/this-or-that/this-or-that.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
this-or-that/this-or-that.php 92% from 13 tests
The main PHP file in "This-or-That" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
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
Good job! No executable or dangerous file extensions detected551 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 172 | 41 | 382 |
CSS | 1 | 27 | 10 | 130 |
JavaScript | 1 | 11 | 6 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 66.67% |
▷ Protected methods | 6 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon-adminmenu16-sprite.png | 2.25KB | 1.28KB | ▼ 43.22% |
img/seperat_or.png | 1.95KB | 0.58KB | ▼ 70.23% |
img/icon-adminpage32.png | 2.52KB | 1.51KB | ▼ 39.83% |
img/icon-adminpage32_2x.png | 7.82KB | 3.13KB | ▼ 60.02% |
img/icon-adminmenu16-sprite_2x.png | 4.25KB | 2.08KB | ▼ 50.99% |