Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/doublewp-tcpdf-wrapper/includes/class-tcpdf-wrapper.php+102
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.90MB] [CPU: ▼51.29ms] Passed 4 tests
This is a short check of server-side resources used by DoublewP TCPDF Wrapper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.70 ▼34.11 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.74 ▼40.34 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.18 ▼39.88 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 9.36 ▼90.83 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.87 ▼23.96 |
TCPDF Wrapper /wp-admin/options-general.php?page=tcpdf-wrapper-options | 2.11 | 6.58 |
Server storage [IO: ▲28.43MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Filesystem usage must be lower than 25MB (currently using 28.43MB)
Filesystem: 237 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DoublewP TCPDF Wrapper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.18 ▼1.41 | 1.76 ▼0.04 | 45.22 ▼1.19 |
Dashboard /wp-admin | 2,207 ▲19 | 5.79 ▲0.92 | 99.41 ▼6.37 | 39.09 ▼0.44 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 35.31 ▼8.28 | 33.70 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.75 ▼5.37 | 599.93 ▼94.15 | 56.93 ▲5.02 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.22 ▲0.03 | 95.14 ▼2.66 | 43.51 ▲0.21 |
TCPDF Wrapper /wp-admin/options-general.php?page=tcpdf-wrapper-options | 806 | 2.04 | 25.45 | 25.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Notice in wp-content/plugins/doublewp-tcpdf-wrapper/includes/class-tcpdf-wrapper.php+102
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=tcpdf-wrapper-options
- > Notice in wp-content/plugins/doublewp-tcpdf-wrapper/includes/class-tcpdf-wrapper.php+102
Trying to access array offset on value of type bool
SRP 50% 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/doublewp-tcpdf-wrapper/lib/tcpdf/tools/tcpdf_addfont.php
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 issues were found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #1 in doublewp-tcpdf-wrapper/assets to your readme.txt
doublewp-tcpdf-wrapper/tcpdf-wrapper.php 85% from 13 tests
The main file in "DoublewP TCPDF Wrapper" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("doublewp-tcpdf-wrapper.php" instead of "tcpdf-wrapper.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 95% from 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 plugin47,537 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,552 | 12,036 | 47,357 |
Markdown | 2 | 32 | 0 | 84 |
PO File | 1 | 12 | 13 | 49 |
JSON | 1 | 0 | 0 | 47 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,379)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 340.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,379.00 |
Average method complexity | 9.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 727 | |
▷ Static methods | 110 | 15.13% |
▷ Public methods | 446 | 61.35% |
▷ Protected methods | 276 | 37.96% |
▷ Private methods | 5 | 0.69% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 108 | |
▷ Global constants | 108 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 28.16KB | 11.14KB | ▼ 60.45% |