Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.17ms] Passed 4 tests
Server-side resources used by Program Output
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.23 ▼11.60 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.95 ▲5.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.49 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.73 ▼6.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.68 ▲0.49 |
Program Output /wp-admin/options-general.php?page=program-output | 3.22 | 30.83 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Program Output
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.46 ▼0.07 | 1.66 ▼0.18 | 42.36 ▼3.42 |
Dashboard /wp-admin | 2,207 ▲22 | 5.81 ▲0.96 | 109.65 ▼2.36 | 38.31 ▼5.01 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 40.15 ▼0.74 | 35.73 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,517 ▼5 | 17.50 ▼5.59 | 680.77 ▼2.16 | 66.80 ▲8.86 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.01 | 95.39 ▼9.48 | 42.05 ▼3.39 |
Program Output /wp-admin/options-general.php?page=program-output | 1,085 | 2.11 | 30.22 | 56.44 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/program-output/program-output.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/program-output/includes/program-output-functions.php:72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (This is Console (CMD) Output. Useful for Command Line Output such as C, C++, JAVA etc.), #2 (This is Browser Output. Useful for Web Languages such as ASP, PHP, JSP, HTML, JS, CSS etc.)
program-output/program-output.php 92% from 13 tests
Analyzing the main PHP file in "Program Output" version 1.1.0
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin499 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 30 | 10 | 280 |
PHP | 2 | 34 | 69 | 195 |
JavaScript | 1 | 1 | 11 | 24 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/console-icon.png | 0.42KB | 0.34KB | ▼ 17.56% |
screenshot-1.png | 11.10KB | 10.27KB | ▼ 7.50% |
screenshot-2.png | 10.90KB | 10.05KB | ▼ 7.82% |
admin/img/browser-icon.png | 0.55KB | 0.51KB | ▼ 7.83% |