Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼32.57ms] Passed 4 tests
This is a short check of server-side resources used by Flexible PDF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▼0.00 | 34.50 ▼9.11 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.57 ▼13.09 |
Posts /wp-admin/edit.php | 3.45 ▼0.40 | 45.37 ▼32.76 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.81 ▼75.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 32.20 ▼1.13 |
Server storage [IO: ▲41.30MB] [DB: ▲0.07MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Total filesystem usage should be limited to 25MB (currently using 41.30MB)
Filesystem: 373 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Flexible PDF: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.41 ▼0.08 | 1.77 ▼0.23 | 38.81 ▼8.06 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.07 | 86.71 ▼2.54 | 43.72 ▲2.35 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.02 | 39.20 ▼32.00 | 35.10 ▼13.57 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.19 ▲0.07 | 643.61 ▼33.11 | 51.57 ▼12.81 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.06 | 95.69 ▼2.44 | 42.81 ▼1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/compress.php
- 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/config_fonts-distr-without-OTL.php:16
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/graph.php on line 27
- > PHP Warning
opendir(_MPDF_PATHgraph_cache): failed to open dir: No such file or directory in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/graph.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/flexible-pdf/vendor/setasign/fpdi/fpdi_bridge.php:23
- > PHP Notice
Undefined index: opname in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/includes/out.php on line 11
- > PHP Warning
include_once(_JPGRAPH_PATHjpgraph_bar.php): failed to open stream: No such file or directory in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/graph.php on line 30
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/includes/CJKdata.php:18
- > PHP Warning
include_once(_JPGRAPH_PATHjpgraph_pie3d.php): failed to open stream: No such file or directory in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/graph.php on line 29
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/flexible-pdf/vendor/mpdf/mpdf/graph.php on line 31
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/flexible-pdf/vendor/setasign/fpdi/fpdi_bridge.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: pdf, html to pdf
flexible-pdf/flexible-pdf.php Passed 13 tests
The main PHP file in "Flexible PDF" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
This plugin adds PDF creation functions to Wordpress
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected77,567 lines of code in 152 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 7,348 | 9,794 | 76,362 |
CSS | 9 | 73 | 38 | 552 |
PO File | 2 | 112 | 224 | 275 |
JSON | 3 | 12 | 0 | 176 |
Markdown | 2 | 43 | 0 | 96 |
JavaScript | 2 | 18 | 13 | 74 |
XML | 1 | 3 | 0 | 16 |
YAML | 1 | 4 | 0 | 16 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 8,314)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 1,542)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 373.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8,314.00 |
Average method complexity | 18.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,542.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 48 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,013 | |
▷ Static methods | 72 | 7.11% |
▷ Public methods | 959 | 94.67% |
▷ Protected methods | 48 | 4.74% |
▷ Private methods | 6 | 0.59% |
Functions | 29 | |
▷ Named functions | 28 | 96.55% |
▷ Anonymous functions | 1 | 3.45% |
Constants | 378 | |
▷ Global constants | 53 | 14.02% |
▷ Class constants | 325 | 85.98% |
▷ Public constants | 325 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin