Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼178.36ms] Passed 4 tests
Server-side resources used by This-or-That
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 25.38 ▲1.39 |
Dashboard /wp-admin | 3.09 ▲0.03 | 37.67 ▲1.34 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 31.76 ▼16.15 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 68.68 ▼698.94 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 22.39 ▲0.30 |
Categories /wp-admin/edit-tags.php?taxonomy=thisorthat_category&post_type=this-or-that | 3.04 | 20.55 |
Add item /wp-admin/post-new.php?post_type=this-or-that | 3.15 | 37.05 |
All items /wp-admin/edit.php?post_type=this-or-that | 3.08 | 24.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This-or-That: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲246 | 16.50 ▲0.50 | 8.96 ▲4.27 | 74.27 ▼6.35 |
Dashboard /wp-admin | 2,977 ▲78 | 6.15 ▼0.03 | 115.72 ▼16.55 | 164.77 ▼5.35 |
Posts /wp-admin/edit.php | 2,789 ▲46 | 3.25 ▲0.01 | 64.91 ▲2.19 | 135.65 ▼5.49 |
Add New Post /wp-admin/post-new.php | 3,839 ▲96 | 20.37 ▲1.56 | 408.57 ▼49.92 | 153.16 ▼11.12 |
Media Library /wp-admin/upload.php | 1,800 ▲51 | 5.52 ▼0.03 | 140.41 ▲2.83 | 186.34 ▲1.42 |
Categories /wp-admin/edit-tags.php?taxonomy=thisorthat_category&post_type=this-or-that | 1,774 | 2.77 | 61.73 | 130.53 |
Add item /wp-admin/post-new.php?post_type=this-or-that | 3,294 | 10.08 | 194.95 | 230.65 |
All items /wp-admin/edit.php?post_type=this-or-that | 1,551 | 2.95 | 59.64 | 112.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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 no errors were found, this is by no means an exhaustive test
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 fix 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 just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
this-or-that/this-or-that.php 92% from 13 tests
The primary PHP file in "This-or-That" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin551 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
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
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
PNG files should be compressed to save space and minimize bandwidth usage
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-adminpage32.png | 2.52KB | 1.51KB | ▼ 39.83% |
img/seperat_or.png | 1.95KB | 0.58KB | ▼ 70.23% |
img/icon-adminmenu16-sprite_2x.png | 4.25KB | 2.08KB | ▼ 50.99% |
img/icon-adminpage32_2x.png | 7.82KB | 3.13KB | ▼ 60.02% |
img/icon-adminmenu16-sprite.png | 2.25KB | 1.28KB | ▼ 43.22% |