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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼3.92ms] Passed 4 tests
A check of server-side resources used by PDF Generator Crowd API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.19 ▲3.23 |
Dashboard /wp-admin | 3.62 ▲0.32 | 46.56 ▼5.23 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 45.10 ▼2.68 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 81.24 ▼10.99 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 42.84 ▲7.94 |
Generator PDF Crowd settings /wp-admin/options-general.php?page=crowdpdf-wp-options | 3.49 | 34.10 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF Generator Crowd API
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.48 ▼0.89 | 8.12 ▲6.39 | 44.09 ▲1.17 |
Dashboard /wp-admin | 2,204 ▲30 | 5.61 ▼0.04 | 81.86 ▼25.83 | 35.90 ▼13.08 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.01 ▼0.01 | 33.88 ▼1.49 | 31.71 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.20 ▲4.83 | 682.48 ▲40.39 | 53.60 ▼11.84 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.10 ▼0.12 | 108.68 ▲12.56 | 46.63 ▲3.75 |
Generator PDF Crowd settings /wp-admin/options-general.php?page=crowdpdf-wp-options | 1,234 | 1.69 | 22.09 | 34.04 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
Please fix the following server-side errors
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=crowdpdf-wp-options
- > Notice in wp-content/plugins/pdf-generator-crowd-api/core/options.php+862
Trying to access array offset on value of type bool
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pdf-generator-crowd-api/pdfgeneratorcrowd.php
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Screenshot with the usage example.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pdf-generator-crowd-api/pdfgeneratorcrowd.php 85% from 13 tests
"PDF Generator Crowd API" version 1.35'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: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("pdf-generator-crowd-api.php" instead of "pdfgeneratorcrowd.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,336 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 414 | 1,713 | 1,017 |
PO File | 1 | 101 | 5 | 311 |
CSS | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 192)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 61.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 200.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 192.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 70 | 92.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.89% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin