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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.33ms] Passed 4 tests
Analyzing server-side resources used by
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.11 ▼21.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.42 ▼5.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.33 ▼0.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.24 ▼3.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.25 ▼6.95 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲20 | 14.35 ▲0.07 | 2.12 ▼0.18 | 43.01 ▼2.10 |
Dashboard /wp-admin | 2,209 ▲32 | 5.54 ▼0.13 | 90.21 ▼7.85 | 40.90 ▼2.84 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 2.03 ▼0.04 | 42.13 ▲1.93 | 35.43 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,549 ▲20 | 18.24 ▼4.63 | 626.49 ▲28.17 | 74.85 ▲24.40 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.22 ▲0.09 | 97.47 ▼8.71 | 45.17 ▼1.11 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function WHA_Elementor\\add_action() in wp-content/plugins/wha-elementor-counter-up/inc/elementor/plugin.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wha-elementor-counter-up/wha-elementor-counter-up.php:37
- > 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 90% from 29 tests
readme.txt 94% 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 your attention:
- Screenshots: Add an image for screenshot #4 (An example of the appearance of the Counter widget)
wha-elementor-counter-up/wha-elementor-counter-up.php 85% from 13 tests
"" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
No dangerous file extensions were detected2,718 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 352 | 312 | 1,803 |
JavaScript | 2 | 73 | 0 | 632 |
CSS | 2 | 47 | 4 | 283 |
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.17 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 40 | |
▷ Static methods | 1 | 2.50% |
▷ Public methods | 25 | 62.50% |
▷ Protected methods | 14 | 35.00% |
▷ Private methods | 1 | 2.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) images/screenshot-3.png | 74.28KB | 0.00KB | ▼ 100.00% |
images/screenshot-1.png | 44.60KB | 22.60KB | ▼ 49.32% |
(invalid) images/screenshot-2.png | 59.73KB | 0.00KB | ▼ 100.00% |