Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼142.98ms] Passed 4 tests
This is a short check of server-side resources used by Contact Form 7 Star Rating with font Awesome
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 33.62 ▲7.76 |
Dashboard /wp-admin | 3.16 ▲0.10 | 45.50 ▲0.79 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 43.96 ▼3.74 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 88.84 ▼571.31 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 35.19 ▲2.34 |
Star Rating Awesome /wp-admin/options-general.php?page=starratingawesome-setting-admin | 3.05 | 30.12 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7 Star Rating with font Awesome
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.12 ▲0.58 | 7.39 ▲0.26 | 47.12 ▼7.29 |
Dashboard /wp-admin | 2,994 ▲60 | 6.05 ▲0.10 | 153.29 ▲13.15 | 115.84 ▼1.11 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.82 ▲0.13 | 66.77 ▼4.85 | 93.40 ▼10.36 |
Add New Post /wp-admin/post-new.php | 1,673 ▲92 | 19.14 ▼1.27 | 392.38 ▼6.21 | 122.59 ▲9.59 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.00 ▼0.01 | 158.96 ▼3.82 | 155.01 ▲29.58 |
Star Rating Awesome /wp-admin/options-general.php?page=starratingawesome-setting-admin | 1,096 | 2.08 | 64.64 | 78.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=starratingawesome-setting-admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=starratingawesome-setting-admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-star-rating-with-font-awersome/starrating.php:27
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
contact-form-7-star-rating-with-font-awersome/starrating.php 92% from 13 tests
The main PHP script in "Contact Form 7 Star Rating with font Awesome" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-7-star-rating-with-font-awersome.php" instead of "starrating.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin510 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 123 | 63 | 457 |
CSS | 1 | 13 | 9 | 44 |
JavaScript | 1 | 2 | 5 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin