Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲2.63ms] Passed 4 tests
Server-side resources used by AfterSalesPro Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.11 ▲4.26 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.15 ▲2.82 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.10 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 108.73 ▲16.47 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 43.29 ▲5.35 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
AfterSalesPro Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.72 ▲0.17 | 1.84 ▲0.12 | 43.24 ▲0.30 |
Dashboard /wp-admin | 2,211 ▲30 | 5.51 ▼0.20 | 102.88 ▼5.59 | 75.39 ▲29.51 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▲0.04 | 34.91 ▼3.14 | 36.23 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,691 ▲163 | 22.07 ▼1.08 | 734.33 ▲27.77 | 46.26 ▼20.93 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.16 ▼0.00 | 105.56 ▲3.97 | 80.72 ▲34.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aftersalespro/includes/class-aftersalesprogr-endpoints.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aftersalespro/admin/partials/footer.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/aftersalespro/admin/partials/dashboard.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aftersalespro/admin/partials/header.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 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
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
- Tags: There are too many tags (17 tag instead of maximum 10)
- Contributors: The plugin tags were not defined
aftersalespro/aftersalespro.php 77% from 13 tests
The entry point to "AfterSalesPro Plugin" version 1.1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 146 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("6.0" instead of "5.7")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,436 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 166 | 333 | 1,103 |
CSS | 1 | 28 | 0 | 138 |
PO File | 1 | 38 | 47 | 127 |
SVG | 1 | 0 | 1 | 68 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 43 | |
▷ Static methods | 8 | 18.60% |
▷ Public methods | 31 | 72.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 27.91% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 20.27KB | 7.37KB | ▼ 63.63% |
admin/images/icon.png | 1.34KB | 0.67KB | ▼ 49.93% |
admin/images/calendly-cta.png | 74.16KB | 28.79KB | ▼ 61.18% |