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.03MB] [CPU: ▼4.21ms] Passed 4 tests
Analyzing server-side resources used by Pronamic Subscriptions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.10 ▼0.52 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.93 ▼9.30 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.53 ▼0.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.45 ▼6.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 44.93 ▲5.98 |
Add New /wp-admin/post-new.php?post_type=pronamic_subs | 3.41 | 53.87 |
Subscriptions /wp-admin/edit.php?post_type=pronamic_subs | 3.30 | 40.21 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Pronamic Subscriptions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.55 ▼0.07 | 1.84 ▲0.26 | 43.69 ▲2.05 |
Dashboard /wp-admin | 2,224 ▲47 | 5.66 ▲0.06 | 87.33 ▼4.28 | 73.68 ▲31.96 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 1.99 ▼0.16 | 40.35 ▲3.54 | 35.13 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,702 ▲176 | 22.24 ▼1.27 | 696.41 ▼0.81 | 57.33 ▼8.40 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▲0.05 | 104.34 ▼1.24 | 74.63 ▲26.87 |
Add New /wp-admin/post-new.php?post_type=pronamic_subs | 2,499 | 7.68 | 192.19 | 127.74 |
Subscriptions /wp-admin/edit.php?post_type=pronamic_subs | 1,134 | 1.92 | 35.56 | 31.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pronamic-subscriptions/admin/meta-box-subscription-capabilities.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pronamic-subscriptions/includes/gravityforms.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pronamic-subscriptions/admin/meta-box-subscription-details.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/pronamic-subscriptions/admin/meta-box-subscription.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pronamic-subscriptions/pronamic-subscriptions.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: companies, pronamic
pronamic-subscriptions/pronamic-subscriptions.php 92% from 13 tests
"Pronamic Subscriptions" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected529 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 138 | 169 | 379 |
PO File | 1 | 421 | 1,073 | 98 |
SQL | 3 | 0 | 0 | 52 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 11 | 64.71% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/icons/subscription.png | 0.67KB | 0.58KB | ▼ 13.33% |