Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼144.03ms] Passed 4 tests
Server-side resources used by WPS Visitor Counter Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 43.13 ▲19.76 |
Dashboard /wp-admin | 3.14 ▲0.09 | 47.05 ▼10.06 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 55.63 ▲0.43 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 107.33 ▼556.10 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 35.50 ▼10.39 |
WPS Visitor Counter /wp-admin/options-general.php?page=wps_options_general | 3.12 | 37.48 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 296 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_wps_statistic |
wp_wps_st_options |
New WordPress options |
---|
widget_wps_visitor_counter |
Browser metrics Passed 4 tests
An overview of browser requirements for WPS Visitor Counter Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲228 | 16.72 ▲1.12 | 50.90 ▲42.61 | 47.30 ▼8.82 |
Dashboard /wp-admin | 2,974 ▲41 | 5.87 ▼0.33 | 180.28 ▲9.06 | 112.68 ▼12.09 |
Posts /wp-admin/edit.php | 2,746 ▲10 | 2.83 ▲0.12 | 75.84 ▲10.52 | 86.90 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,626 ▲45 | 21.49 ▲5.15 | 311.61 ▼201.58 | 128.95 ▼22.24 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.04 ▲0.01 | 190.38 ▲8.94 | 117.30 ▼18.69 |
WPS Visitor Counter /wp-admin/options-general.php?page=wps_options_general | 2,230 | 2.82 | 82.24 | 142.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_wps_statistic
- wp_wps_st_options
- Zombie WordPress options were found after uninstall: 1 option
- widget_wps_visitor_counter
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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wps-visitor-counter/wps-visitor-counter.php on line 30
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/wps-visitor-counter/wps-visitor-counter.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wps-visitor-counter/wps-visitor-counter-count.php:18
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wps-visitor-counter/wps-visitor-counter.php on line 31
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wps-visitor-counter/wps-visitor-counter.php on line 29
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wps-visitor-counter/wps-visitor-counter.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wps-visitor-counter/wps-visitor-counter-options-general.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wps-visitor-counter/wps-visitor-counter-widgets.php:2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wps_options_general
- > Network (severe)
https://affiliates.a2hosting.com/scripts/imp.php?aid=5bf7c623aa2a9&bid=d6664600 - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/options-general.php?page=wps_options_general
- > Network (severe)
http://affiliates.a2hosting.com/accounts/default1/banners/d6664600.jpg - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please describe screenshot #4 in wps-visitor-counter/assets to your readme.txt
wps-visitor-counter/wps-visitor-counter.php 85% from 13 tests
This is the main PHP file of "WPS Visitor Counter Plugin" version 1.4.8, 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:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
- 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 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin892 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 231 | 24 | 658 |
CSS | 1 | 14 | 1 | 194 |
JavaScript | 2 | 39 | 0 | 40 |
HTML | 1 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview 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.37 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
counter/views_month.png | 0.42KB | 0.35KB | ▼ 16.51% |
counter/user_year.png | 0.84KB | 0.59KB | ▼ 29.29% |
counter/twitter.png | 16.67KB | 2.02KB | ▼ 87.87% |
counter/user_today.png | 0.63KB | 0.57KB | ▼ 10.63% |
counter/7days_views.png | 0.69KB | 0.63KB | ▼ 8.35% |