Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼0.19ms] Passed 4 tests
Analyzing server-side resources used by Managed posts rating ★ Like button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 45.99 ▼1.42 |
Dashboard /wp-admin | 3.69 ▲0.38 | 56.38 ▲2.11 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.20 ▼2.02 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 119.02 ▲25.67 |
Media Library /wp-admin/upload.php | 3.55 ▲0.31 | 41.01 ▲0.58 |
Statistic /wp-admin/admin.php?page=mpr-stat-page | 3.52 | 38.56 |
Logs /wp-admin/admin.php?page=mpr-plugin-page | 3.55 | 38.23 |
Settings /wp-admin/admin.php?page=mpr-plugin-settings | 3.51 | 36.20 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mpr_rating_log |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
mpr_general_section |
Browser metrics Passed 4 tests
A check of browser resources used by Managed posts rating ★ Like button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.24 ▼0.52 | 2.19 ▲0.15 | 44.29 ▼6.85 |
Dashboard /wp-admin | 2,229 ▲49 | 5.65 ▲0.02 | 93.35 ▲1.47 | 43.51 ▲0.96 |
Posts /wp-admin/edit.php | 2,170 ▲73 | 1.99 ▼0.04 | 37.60 ▼4.17 | 35.72 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,720 ▲192 | 21.90 ▼1.12 | 613.70 ▼71.64 | 58.99 ▲5.77 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.17 ▼0.10 | 98.39 ▼14.20 | 40.48 ▼4.78 |
Statistic /wp-admin/admin.php?page=mpr-stat-page | 885 | 4.04 | 120.78 | 30.66 |
Logs /wp-admin/admin.php?page=mpr-plugin-page | 1,030 | 2.02 | 31.57 | 28.92 |
Settings /wp-admin/admin.php?page=mpr-plugin-settings | 982 | 2.00 | 28.56 | 29.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_mpr_rating_log
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- mpr_general_section
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/managed-posts-rating-like-button/includes/functions.php:2
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: rating system, rate post, rating, voting, like button
managed-posts-rating-like-button/managed-posts-rating-like-button.php 85% from 13 tests
The principal PHP file in "Managed posts rating ★ Like button" v. 2.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,334 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 588 | 105 | 2,058 |
CSS | 3 | 26 | 3 | 152 |
JavaScript | 4 | 29 | 11 | 124 |
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.35 |
Average class complexity | 10.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 1 | 5.88% |
Methods | 107 | |
▷ Static methods | 13 | 12.15% |
▷ Public methods | 90 | 84.11% |
▷ Protected methods | 7 | 6.54% |
▷ Private methods | 10 | 9.35% |
Functions | 23 | |
▷ Named functions | 17 | 73.91% |
▷ Anonymous functions | 6 | 26.09% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin