Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.20ms] Passed 4 tests
This is a short check of server-side resources used by Gravity 2 PDF
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.71 ▼1.44 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.50 ▼3.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.77 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.95 ▼3.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.14 ▲3.98 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Gravity 2 PDF
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.27 ▼1.04 | 1.99 ▲0.08 | 42.01 ▼0.58 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.93 | 94.38 ▼12.85 | 36.61 ▼2.35 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.05 | 39.19 ▲3.43 | 34.08 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.28 ▲0.15 | 658.85 ▲33.15 | 50.25 ▼8.82 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.01 | 109.21 ▲8.44 | 47.64 ▲4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gf2pdf/class/merges_table.class.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/gf2pdf/class/merges_table.class.php on line 4
- > PHP Warning
include_once(): Failed opening 'GM_PATH_INCLUDES/gravity_merge_tab_menus.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gf2pdf/includes/gravity_merges_update.php on line 3
- > PHP Warning
include_once(GM_PATH_INCLUDES/gravity_merge_tab_menus.php): failed to open stream: No such file or directory in wp-content/plugins/gf2pdf/includes/gravity_merges.php on line 3
- > PHP Warning
include_once(): Failed opening 'GM_PATH_CLASS/merges_table.class.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gf2pdf/class/gravity_merge_pages.class.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Gravity_Merge_Settings' not found in wp-content/plugins/gf2pdf/includes/gravity_merges_update.php:8
- > PHP Fatal error
Uncaught Error: Class 'Gravity_Merge_Settings' not found in wp-content/plugins/gf2pdf/includes/gravity_merges.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/gf2pdf/includes/gravity_merge_addons.php:2
- > PHP Warning
Use of undefined constant GM_PATH_CLASS - assumed 'GM_PATH_CLASS' (this will throw an Error in a future version of PHP) in wp-content/plugins/gf2pdf/class/gravity_merge_pages.class.php on line 2
- > PHP Warning
include_once(GM_PATH_INCLUDES/gravity_merge_tab_menus.php): failed to open stream: No such file or directory in wp-content/plugins/gf2pdf/includes/gravity_merges_new.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
gf2pdf/GravityMerge.php 85% from 13 tests
"Gravity 2 PDF" version 3.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("gf2pdf.php" instead of "GravityMerge.php")
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
Everything looks great! No dangerous files found in this plugin5,451 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,106 | 1,791 | 4,851 |
JavaScript | 4 | 53 | 11 | 304 |
CSS | 2 | 37 | 0 | 268 |
JSON | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 33.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 15 | 6.64% |
▷ Public methods | 192 | 84.96% |
▷ Protected methods | 23 | 10.18% |
▷ Private methods | 11 | 4.87% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 15 | 83.33% |
▷ Class constants | 3 | 16.67% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gravity2pdf-icon.png | 3.80KB | 1.26KB | ▼ 66.82% |
assets/images/gravity2pdf-logo.png | 40.37KB | 18.13KB | ▼ 55.09% |