Benchmarks
Plugin footprint 65% 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.18MB] [CPU: ▼5.86ms] Passed 4 tests
An overview of server-side resources used by salavat counter Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.86 ▼5.24 |
Dashboard /wp-admin | 3.50 ▲0.15 | 49.12 ▼9.40 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.02 ▲1.52 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 81.53 ▼10.31 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.64 ▲4.44 |
salavat-counter /wp-admin/options-general.php?page=salavatcounter-options | 3.42 | 35.99 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_salavatcounter |
New WordPress options |
---|
widget_salavat_shomar |
salavat_counter_db_version |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for salavat counter Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲129 | 13.72 ▼0.65 | 7.94 ▲6.34 | 37.27 ▲0.03 |
Dashboard /wp-admin | 2,199 ▲21 | 5.55 ▼0.05 | 82.27 ▼16.96 | 38.70 ▼3.38 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.05 | 32.32 ▼2.75 | 30.59 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.28 ▼0.04 | 618.62 ▼69.35 | 46.42 ▼18.96 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.16 ▲0.01 | 94.61 ▼3.59 | 41.89 ▼2.35 |
salavat-counter /wp-admin/options-general.php?page=salavatcounter-options | 1,084 | 3.11 | 37.52 | 29.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_salavatcounter
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- salavat_counter_db_version
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_salavat_shomar
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/salavat-counter/index.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/salavat-counter/wp-table-class.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/salavat-counter/wp-table-class.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/salavat-counter/wp-table-class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/salavat-counter/wp-table-options.php:23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6, #7 in salavat-counter/assets to your readme.txt
salavat-counter/index.php 85% from 13 tests
This is the main PHP file of "salavat counter Plugin" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("salavat-counter.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,546 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 169 | 136 | 954 |
CSS | 6 | 23 | 32 | 328 |
PO File | 1 | 73 | 86 | 144 |
JavaScript | 2 | 12 | 6 | 102 |
HTML | 1 | 0 | 11 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/styles/green/salavat.png | 2.11KB | 1.22KB | ▼ 42.16% |
css/styles/red/salavat.png | 1.89KB | 0.98KB | ▼ 48.06% |
css/styles/blue/salavat.png | 1.96KB | 0.98KB | ▼ 50.07% |
css/styles/phosphor/salavat.png | 1.99KB | 0.98KB | ▼ 50.61% |
css/styles/pink/salavat.png | 2.00KB | 0.98KB | ▼ 50.91% |