Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.34ms] Passed 4 tests
This is a short check of server-side resources used by Addiction Recovery Connector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.79 ▲2.07 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.09 ▲0.81 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.65 ▼1.63 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 85.37 ▼19.78 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.52 ▼0.75 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_related_creator |
widget_recent_posts_ar |
widget_related_creator_title_link |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Addiction Recovery Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲45 | 14.47 ▲0.29 | 1.74 ▼0.87 | 41.58 ▼3.74 |
Dashboard /wp-admin | 2,225 ▲37 | 4.86 ▼1.02 | 101.08 ▼10.13 | 39.22 ▼4.88 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▲0.03 | 38.70 ▲2.07 | 35.78 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.04 ▲1.68 | 657.46 ▼43.53 | 64.06 ▲10.54 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.20 ▼0.03 | 97.03 ▼3.63 | 43.67 ▼8.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- widget_related_creator
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_related_creator_title_link
- widget_recent_posts_ar
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/addiction-recovery-connector/inc/creator-related.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/addiction-recovery-connector/templates/authors-template.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/addiction-recovery-connector/templates/instagram-feed-template.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/creator-instagram.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/token-validation-endpoint.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/addiction-recovery-connector/templates/reviewers-template.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/addiction-recovery-connector/plugin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/inc/admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addiction-recovery-connector/custom_routes/class.main.php:571
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: content publishing, publishing, post scheduling, blog
addiction-recovery-connector/plugin.php 85% from 13 tests
"Addiction Recovery Connector" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("addiction-recovery-connector.php" instead of "plugin.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.5")
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
There were no executable files found in this plugin2,754 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 522 | 474 | 2,416 |
CSS | 4 | 17 | 2 | 271 |
JavaScript | 4 | 2 | 2 | 53 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 65 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 23.53% |
Functions | 23 | |
▷ Named functions | 13 | 56.52% |
▷ Anonymous functions | 10 | 43.48% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/addiction-recovery-placeholder.png | 2.46KB | 0.15KB | ▼ 94.08% |