Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼13.09ms] Passed 4 tests
This is a short check of server-side resources used by Print PDF Generator and Publisher
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.28 ▼3.18 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.20 ▼1.54 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 52.24 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.04 ▼0.84 | 57.48 ▼48.74 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.76 ▲1.81 |
Settings /wp-admin/edit.php?post_type=publications&page=publications-settings | 3.36 | 34.78 |
Publications /wp-admin/edit.php?post_type=publications | 3.43 | 40.76 |
Add New /wp-admin/post-new.php?post_type=publications | 3.30 | 34.69 |
Server storage [IO: ▲3.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Print PDF Generator and Publisher
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.49 ▼0.90 | 1.87 ▲0.12 | 50.73 ▲1.99 |
Dashboard /wp-admin | 2,234 ▲49 | 4.86 ▼0.01 | 122.88 ▲14.77 | 49.39 ▲8.63 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.01 ▲0.02 | 39.44 ▼1.19 | 35.58 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6,275 ▲4,752 | 20.05 ▼3.13 | 923.33 ▲325.99 | 74.20 ▲20.89 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.15 ▼0.09 | 93.71 ▼9.85 | 39.48 ▼1.46 |
Settings /wp-admin/edit.php?post_type=publications&page=publications-settings | 911 | 2.02 | 21.70 | 31.18 |
Publications /wp-admin/edit.php?post_type=publications | 1,080 | 1.98 | 32.05 | 31.58 |
Add New /wp-admin/post-new.php?post_type=publications | 1,621 | 2.56 | 50.37 | 53.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% 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)
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=publications
- > Notice in wp-content/plugins/nopeamedia/src/NopMed_Publication.php+195
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/post-new.php?post_type=publications
- > Notice in wp-content/plugins/nopeamedia/src/NopMed_Publication.php+431
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in nopeamedia/assets to your readme.txt
nopeamedia/nopeamedia.php 92% from 13 tests
The main PHP script in "Print PDF Generator and Publisher" version 1.1.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin11,664 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,424 |
PHP | 12 | 279 | 201 | 1,202 |
JSON | 2 | 0 | 0 | 387 |
PO File | 1 | 170 | 183 | 357 |
CSS | 4 | 41 | 16 | 289 |
JavaScript | 5 | 0 | 1 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 16 | 29.09% |
▷ Public methods | 44 | 80.00% |
▷ Protected methods | 9 | 16.36% |
▷ Private methods | 2 | 3.64% |
Functions | 13 | |
▷ Named functions | 8 | 61.54% |
▷ Anonymous functions | 5 | 38.46% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.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
There were not PNG files found in your plugin