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.01MB] [CPU: ▼3.23ms] Passed 4 tests
This is a short check of server-side resources used by Print-O-Matic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.65 ▼3.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.54 ▲0.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 55.03 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.58 ▼5.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.62 ▼3.36 |
Print-O-Matic /wp-admin/options-general.php?page=print-o-matic-options | 3.22 | 33.72 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Print-O-Matic
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.38 ▼0.97 | 9.43 ▲7.86 | 43.48 ▼0.46 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▲0.02 | 87.85 ▼5.71 | 36.39 ▼21.79 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.01 | 40.29 ▲2.69 | 34.59 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.37 ▲0.26 | 619.91 ▼79.02 | 61.02 ▲8.98 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▲0.02 | 97.42 ▼18.18 | 44.46 ▼3.41 |
Print-O-Matic /wp-admin/options-general.php?page=print-o-matic-options | 1,477 | 4.34 | 96.75 | 51.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/print-o-matic/print-o-matic.php:451
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=print-o-matic-options
- > Network (severe)
wp-content/plugins/print-o-matic/css/admin_style.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is required in print-o-matic/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
print-o-matic/print-o-matic.php Passed 13 tests
The main PHP file in "Print-O-Matic" ver. 2.1.10 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Shortcode that adds a printer icon, allowing the user to print the post or a specified HTML element in the post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin619 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 58 | 372 |
JavaScript | 3 | 26 | 12 | 162 |
CSS | 1 | 9 | 0 | 51 |
Markdown | 1 | 8 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/print-icon.png | 3.92KB | 1.25KB | ▼ 68.14% |
css/print-icon-small.png | 0.59KB | 0.45KB | ▼ 23.93% |
css/print-icon-small-black.png | 0.18KB | 0.13KB | ▼ 29.28% |
css/print-icon-small-white.png | 0.18KB | 0.13KB | ▼ 30.81% |
css/print-icon-small-grey.png | 0.18KB | 0.13KB | ▼ 29.28% |