Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.91ms] Passed 4 tests
Server-side resources used by Advanced Rating Gutenberg Block - Star, Heart, Circle Rating
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.84 ▼2.76 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.80 ▼4.02 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.25 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.85 ▼8.25 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.98 ▲2.07 |
Rating Block /wp-admin/tools.php?page=adrb-rating | 3.23 | 30.57 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Rating Gutenberg Block - Star, Heart, Circle Rating
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.23 ▼0.35 | 1.77 ▲0.07 | 46.13 ▲1.93 |
Dashboard /wp-admin | 2,196 ▲19 | 5.48 ▼0.04 | 88.45 ▼10.76 | 38.91 ▼7.07 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.08 | 35.69 ▼7.90 | 34.77 ▼3.38 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,675 | 19.24 ▼4.46 | 990.20 ▲376.49 | 63.70 ▲12.13 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▼0.02 | 102.85 ▼0.13 | 42.69 ▼2.60 |
Rating Block /wp-admin/tools.php?page=adrb-rating | 1,432 | 9.12 | 299.73 | 91.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
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
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rating-block/admin/admin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #1 in advanced-rating-block/assets to your readme.txt
advanced-rating-block/plugin.php 77% from 13 tests
The primary PHP file in "Advanced Rating Gutenberg Block - Star, Heart, Circle Rating" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "7.0")
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.7")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-rating-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,164 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 20 | 17 | 865 |
JSON | 1 | 0 | 0 | 89 |
PHP | 3 | 16 | 49 | 88 |
CSS | 3 | 11 | 0 | 75 |
Sass | 2 | 4 | 1 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin