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.00MB] [CPU: ▼7.11ms] Passed 4 tests
A check of server-side resources used by GPDF From
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.42 ▼14.32 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.65 ▲2.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.35 ▼5.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.19 ▼10.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.71 ▲3.09 |
Server storage [IO: ▲2.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GPDF From
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.44 ▲0.14 | 1.85 ▼0.15 | 38.82 ▼5.02 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▼0.06 | 100.09 ▼6.26 | 43.78 ▲1.58 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.04 | 38.76 ▼3.95 | 31.02 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,538 ▲14 | 23.15 ▼0.33 | 686.22 ▼2.25 | 66.52 ▲11.43 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.06 | 93.95 ▼13.59 | 41.68 ▼2.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'LpfAbstractModule' not found in wp-content/plugins/gpdf-form/assets/src/class-LpfFieldsAssociation.php:5
- > PHP Fatal error
Uncaught Error: Class 'LpfAbstractModule' not found in wp-content/plugins/gpdf-form/src/class-LpfGeneratedPdf.php:5
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gpdf-form/src/class-LpfGfaddon.php:3
- > PHP Fatal error
Uncaught Error: Class 'LpfAbstractModule' not found in wp-content/plugins/gpdf-form/assets/src/class-LpfGeneratedPdf.php:5
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gpdf-form/assets/src/class-LpfGfaddon.php:3
- > PHP Fatal error
Uncaught Error: Class 'LpfAbstractModule' not found in wp-content/plugins/gpdf-form/src/class-LpfFieldsAssociation.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- License uri: Please fix this invalid URI: ""
- Screenshots: Please add an image for screenshot #6 (/assets/screenshot-6.png)
gpdf-form/app.php 85% from 13 tests
Analyzing the main PHP file in "GPDF From" version 0.1
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("gpdf-form.php" instead of "app.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,525 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 18 | 20 | 2,193 |
PHP | 18 | 306 | 383 | 1,431 |
SVG | 2 | 0 | 0 | 853 |
JavaScript | 5 | 12 | 13 | 48 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 14 | 13.59% |
▷ Public methods | 103 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/add-on/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
assets/assets/add-on/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
assets/add-on/chosen/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
assets/assets/add-on/chosen/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |