Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.12ms] Passed 4 tests
Server-side resources used by WP Print Friendly
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 43.56 ▲1.03 |
Dashboard /wp-admin | 3.46 ▲0.15 | 54.77 ▲1.00 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.87 ▲0.85 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 98.38 ▼3.35 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.22 ▲1.28 |
WP Print Friendly /wp-admin/options-general.php?page=wp_print_friendly | 3.34 | 32.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Print Friendly
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.15 ▼1.25 | 1.73 ▼0.03 | 44.14 ▼0.97 |
Dashboard /wp-admin | 2,233 ▲45 | 5.86 ▼0.04 | 111.56 ▲9.95 | 47.66 ▲2.87 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 1.99 ▲0.01 | 35.81 ▼1.30 | 38.80 ▲7.12 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 22.97 ▼0.31 | 659.59 ▼16.96 | 55.94 ▲3.00 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.35 ▲0.15 | 104.73 ▲3.27 | 47.46 ▲2.38 |
WP Print Friendly /wp-admin/options-general.php?page=wp_print_friendly | 1,027 | 2.07 | 25.40 | 37.68 |
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 does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/wp-print-friendly/wp-print-friendly.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_title() in wp-content/plugins/wp-print-friendly/default-template.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: printer, template, printable, print
wp-print-friendly/wp-print-friendly.php Passed 13 tests
This is the main PHP file of "WP Print Friendly" version 0.6.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Extends WordPress' template system to support printer-friendly templates. Works with permalink structures to support nice URLs.
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
There were no executable files found in this plugin599 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 157 | 352 | 599 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 144.00 |
▷ Minimum class complexity | 144.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 24 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.69% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected