Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.01ms] Passed 4 tests
A check of server-side resources used by Pride Codes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 33.98 ▼6.24 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.92 ▼10.38 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.33 ▼9.74 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.80 ▲2.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.17 ▼1.66 |
Pride Codes /wp-admin/options-general.php?page=pride-codes | 3.25 | 31.35 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pride Codes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.34 ▼1.42 | 1.71 ▼0.30 | 40.89 ▼10.11 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.19 | 108.75 ▼6.56 | 43.66 ▼2.43 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.03 ▲0.04 | 39.97 ▲2.50 | 35.84 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.86 ▼5.59 | 589.08 ▼86.38 | 53.75 ▲1.84 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.01 | 98.09 ▼10.11 | 42.44 ▼5.00 |
Pride Codes /wp-admin/options-general.php?page=pride-codes | 843 | 2.04 | 25.60 | 30.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- 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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pride-codes/pride-codes.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: marriage equality, pride, equality, lgbtqi
pride-codes/pride-codes.php Passed 13 tests
Analyzing the main PHP file in "Pride Codes" version 1.1.2
62 characters long description:
Show your support for your fellow LGBTQI+ friends & colleagues
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected246 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 39 | 217 |
CSS | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
7 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/voteyes_corner_right.png | 9.13KB | 3.14KB | ▼ 65.56% |
images/voteyes_corner_left.png | 7.07KB | 3.12KB | ▼ 55.81% |
images/wear_it_purple.png | 10.75KB | 4.93KB | ▼ 54.13% |
images/code_corner.png | 6.13KB | 2.14KB | ▼ 65.02% |
images/rainbow_corner.png | 5.36KB | 1.59KB | ▼ 70.39% |