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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.77ms] Passed 4 tests
An overview of server-side resources used by BuddyForms Moderation ( Former: Review Logic )
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.12 ▼8.90 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.35 ▼10.61 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 51.66 ▼0.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.04 ▼16.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.85 ▼2.80 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyForms Moderation ( Former: Review Logic )
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.73 ▲0.10 | 1.71 ▲0.07 | 34.66 ▼5.80 |
Dashboard /wp-admin | 2,214 ▲34 | 5.61 ▼0.07 | 86.95 ▲0.27 | 43.61 ▲3.51 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.98 ▼0.00 | 41.63 ▲1.14 | 41.49 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 22.96 ▼0.35 | 629.77 ▼3.18 | 50.98 ▼10.84 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.21 ▲0.01 | 97.52 ▼4.02 | 45.36 ▼0.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (**Different Post Status in the Frontend**), #2 (**Different Post Status in the Backend**), #3 (**Button Logic in the Front-end edit Screen**)
buddyforms-review/loader.php 85% from 13 tests
The principal PHP file in "BuddyForms Moderation ( Former: Review Logic )" v. 1.5.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddyforms-review.php" instead of "loader.php")
- 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 plugin8,101 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 1,777 | 2,401 | 5,820 |
PHP | 8 | 532 | 298 | 2,075 |
JavaScript | 2 | 22 | 0 | 152 |
CSS | 2 | 2 | 0 | 28 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 46.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 110 | |
▷ Static methods | 5 | 4.55% |
▷ Public methods | 87 | 79.09% |
▷ Protected methods | 23 | 20.91% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin