Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/post2pdf-converter/post2pdf-converter.php+60
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.29ms] Passed 4 tests
Analyzing server-side resources used by POST2PDF Converter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.04 ▼2.68 |
Dashboard /wp-admin | 3.46 ▲0.11 | 44.23 ▼11.13 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.71 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 82.69 ▼8.89 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.20 ▲8.07 |
POST2PDF Converter /wp-admin/options-general.php?page=post2pdf-converter-options | 3.77 | 29.76 |
Server storage [IO: ▲16.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 273 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
post2pdf_conv_sig |
post2pdf_conv_checkver_stamp |
widget_recent-comments |
post2pdf_conv_setting_opt |
post2pdf_conv_exc |
db_upgraded |
post2pdf_conv_updated |
widget_recent-posts |
recovery_mode_email_last_sent |
... |
Browser metrics Passed 4 tests
A check of browser resources used by POST2PDF Converter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲57 | 14.18 ▼0.37 | 1.75 ▲0.01 | 37.63 ▼7.45 |
Dashboard /wp-admin | 2,212 ▲32 | 5.59 ▼0.07 | 83.67 ▼8.19 | 38.79 ▼1.91 |
Posts /wp-admin/edit.php | 2,096 ▼4 | 2.08 ▲0.08 | 34.81 ▼2.58 | 30.54 ▼7.27 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.19 ▼1.75 | 601.24 ▼9.52 | 59.76 ▼22.34 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.24 ▲0.02 | 95.54 ▼14.03 | 45.42 ▲0.14 |
POST2PDF Converter /wp-admin/options-general.php?page=post2pdf-converter-options | 2,225 | 1.12 | 6.42 | 32.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- recovery_mode_email_last_sent
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=post2pdf-converter-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=post2pdf-converter-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=post2pdf-converter-options
- > Notice in wp-content/plugins/post2pdf-converter/post2pdf-converter-admin.php+583
Undefined property: POST2PDF_Converter::$post2pdf_conv_allowed_str
- > GET request to /wp-admin/options-general.php?page=post2pdf-converter-options
- > Error in wp-content/plugins/post2pdf-converter/post2pdf-converter-admin.php+769
Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/post2pdf-converter/post2pdf-converter-admin.php:769
Stack trace:
#0 wp-content/plugins/post2pdf-converter/post2pdf-converter.php(838): include_once()
#1 wp-includes/class-wp-hook.php(310): POST2PDF_Converter->post2pdf_conv_options_panel()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/post2pdf-converter/tcpdf/tcpdf.php on line 22155
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/post2pdf-converter/tcpdf/config/tcpdf_config.php:41
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/post2pdf-converter/tcpdf/config/tcpdf_config.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/post2pdf-converter/post2pdf-converter.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/post2pdf-converter/post2pdf-converter-admin.php:11
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (This is the download link.), #2 (This is setting panel.)
post2pdf-converter/post2pdf-converter.php 92% from 13 tests
"POST2PDF Converter" version 0.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/post2pdf-converter/tcpdf/tcpdf.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 1,828 | 13,052 | 48,557 |
PO File | 2 | 351 | 374 | 733 |
JavaScript | 1 | 4 | 1 | 21 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 5,191)
- Method cyclomatic complexity should be reduced to less than 100 (currently 479)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 467.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5,191.00 |
Average method complexity | 10.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 479.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 679 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 353 | 51.99% |
▷ Protected methods | 326 | 48.01% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 114 | |
▷ Global constants | 114 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tcpdf/images/tcpdf_signature.png | 66.34KB | 25.47KB | ▼ 61.61% |
img/pdf128.png | 7.18KB | 3.77KB | ▼ 47.48% |
img/pdf32.png | 1.51KB | 1.46KB | ▼ 3.29% |
img/pdf48.png | 2.47KB | 1.86KB | ▼ 24.61% |
img/pdf16.png | 0.65KB | 0.74KB | 0.00% |