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
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼2.66ms] Passed 4 tests
A check of server-side resources used by Dexs.Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.31 ▼0.57 |
Dashboard /wp-admin | 3.58 ▲0.27 | 51.62 ▲5.24 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 45.94 ▼4.65 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 85.71 ▼8.22 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 38.26 ▲2.80 |
Dexs Counter /wp-admin/options-general.php?page=dexs-counter | 3.49 | 37.76 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_dexs_counter |
wp_dexs_counter_stats |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_dexs-rate-counter |
theysaidso_admin_options |
widget_recent-posts |
widget_dexs-view-counter |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Dexs.Counter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲141 | 14.03 ▼0.26 | 1.81 ▼0.27 | 39.46 ▼5.06 |
Dashboard /wp-admin | 2,282 ▲94 | 5.41 ▲0.30 | 111.19 ▲6.95 | 46.39 ▲4.26 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.01 | 34.17 ▼7.81 | 35.42 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.49 ▼0.07 | 687.42 ▼10.70 | 64.79 ▲11.89 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▲0.01 | 95.19 ▼11.04 | 40.39 ▼6.93 |
Dexs Counter /wp-admin/options-general.php?page=dexs-counter | 1,090 | 2.03 | 22.46 | 44.91 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- widget_dexs-rate-counter
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_dexs-view-counter
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/dexs-counter/system/admin.docs.php
- > /wp-content/plugins/dexs-counter/system/admin.widget.php
- > /wp-content/plugins/dexs-counter/system/admin.config.php
- > /wp-content/plugins/dexs-counter/system/func.frontend.php
- > /wp-content/plugins/dexs-counter/system/class.widgets.php
- > /wp-content/plugins/dexs-counter/system/class.system.php
- > /wp-content/plugins/dexs-counter/dexs-counter.php
- > /wp-content/plugins/dexs-counter/system/class.counter.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: views, statistics, rating, widget, ratings...
dexs-counter/dexs-counter.php Passed 13 tests
The entry point to "Dexs.Counter" version 0.1.3 is a PHP file that has certain tags in its header comment area
119 characters long description:
A simple but powerful view counter and rating system, with own (dashboard) widgets, for your awesome WordPress website.
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 plugin2,619 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 191 | 349 | 1,831 |
CSS | 2 | 5 | 28 | 545 |
PO File | 1 | 64 | 73 | 162 |
JavaScript | 2 | 1 | 18 | 81 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 7.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 59.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 40.54% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG images were found in this plugin