Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.75ms] Passed 4 tests
Server-side resources used by PRM
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.05 | 38.53 ▼2.97 |
Dashboard /wp-admin | 3.40 ▲0.06 | 51.89 ▼3.01 |
Posts /wp-admin/edit.php | 3.52 ▲0.12 | 51.92 ▼11.59 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.06 | 88.30 ▼29.41 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 35.64 ▼1.84 |
PRM /wp-admin/options-general.php?page=prm | 3.36 | 50.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_prm_subscriptions |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
prm_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by PRM
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.47 ▼0.86 | 10.08 ▲8.42 | 42.71 ▼0.73 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.00 | 90.56 ▼0.22 | 39.89 ▼11.05 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.14 | 33.93 ▼16.34 | 37.94 ▼8.92 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.09 ▼0.05 | 633.92 ▼33.63 | 49.88 ▼7.13 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.20 ▼0.01 | 95.33 ▼10.28 | 42.64 ▼4.06 |
PRM /wp-admin/options-general.php?page=prm | 1,281 | 1.91 | 32.86 | 33.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
- wp_prm_subscriptions
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- prm_db_version
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/prm/includes/prm.donation-form.html.php
- > /wp-content/plugins/prm/includes/prm.donation-form.message.html.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/prm/prm.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/prm/includes/prm.install.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prm/includes/prm.assets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prm/includes/prm.donation-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prm/includes/prm.options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/prm/includes/prm.shortcodes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: donator, donation, patron, management
prm/prm.php Passed 13 tests
The primary PHP file in "PRM" version 1.0.2 is used by WordPress to initiate all plugin functionality
41 characters long description:
PRM: The Patrão Relationship Management!
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
Success! There were no dangerous files found in this plugin1,426 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 178 | 35 | 1,057 |
JavaScript | 3 | 20 | 2 | 165 |
CSS | 1 | 0 | 0 | 121 |
Markdown | 1 | 17 | 0 | 83 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin