Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼9.72ms] Passed 4 tests
An overview of server-side resources used by Electric Studio Download Counter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.60 ▼10.52 |
Dashboard /wp-admin | 3.41 ▲0.06 | 49.26 ▼11.88 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.24 ▼3.17 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.23 ▼13.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.81 ▲4.92 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_es_download_counter |
New WordPress options |
---|
esdc_blocked_ips |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
esdc_file_types |
theysaidso_admin_options |
widget_esdc_top_download_widget |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Electric Studio Download Counter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲163 | 14.09 ▲0.14 | 10.68 ▲8.47 | 40.80 ▼4.14 |
Dashboard /wp-admin | 2,243 ▲61 | 4.94 ▼0.93 | 102.77 ▼7.41 | 40.99 ▼1.69 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.26 ▲0.25 | 34.30 ▼6.27 | 35.34 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 23.26 ▼0.06 | 635.05 ▲18.59 | 62.24 ▼0.69 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.27 ▲0.07 | 98.04 ▼10.81 | 42.39 ▼4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_es_download_counter
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_esdc_top_download_widget
- esdc_file_types
- theysaidso_admin_options
- esdc_blocked_ips
- 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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/electric-studio-download-counter/electric-studio-download-counter.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== electric-studio-download-counter ===
) - Screenshots: These screenshots require images: #1 (An example of the available download stats.), #2 (Specify which file types you want to track.)
electric-studio-download-counter/electric-studio-download-counter.php Passed 13 tests
This is the main PHP file of "Electric Studio Download Counter" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
32 characters long description:
Get Statistics on your Downloads
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
Good job! No executable or dangerous file extensions detected634 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 77 | 192 | 429 |
JavaScript | 2 | 5 | 0 | 73 |
Sass | 1 | 4 | 2 | 67 |
CSS | 2 | 0 | 4 | 65 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_2e83ff_256x240.png | 4.10KB | 4.11KB | 0.00% |
css/images/ui-icons_222222_256x240.png | 4.10KB | 4.11KB | 0.00% |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.15KB | 0.08KB | ▼ 41.61% |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.09KB | 0.10KB | 0.00% |
css/images/ui-icons_454545_256x240.png | 4.10KB | 4.11KB | 0.00% |