Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.72MB] [CPU: ▼303.44ms] Passed 4 tests
Analyzing server-side resources used by Plugin Name: Traffic Stats Widget Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.91 ▼0.81 | 10.89 ▼10.21 |
Dashboard /wp-admin | 1.93 ▼1.13 | 9.76 ▼34.87 |
Posts /wp-admin/edit.php | 1.93 ▼1.18 | 11.54 ▼34.86 |
Add New Post /wp-admin/post-new.php | 1.93 ▼3.50 | 9.83 ▼1,112.77 |
Media Library /wp-admin/upload.php | 1.93 ▼1.08 | 11.17 ▼31.24 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, no new options
New tables |
---|
wp_tsw_log |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Name: Traffic Stats Widget Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,657 ▲51 | 16.00 ▲0.41 | 8.96 ▼0.41 | 45.83 ▼0.32 |
Dashboard /wp-admin | 2,929 ▲79 | 6.12 ▲0.30 | 146.19 ▲8.16 | 98.74 ▼2.74 |
Posts /wp-admin/edit.php | 2,708 ▲5 | 2.70 ▲0.01 | 67.50 ▼2.69 | 84.34 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,658 ▲177 | 18.41 ▼0.16 | 386.42 ▼1.54 | 107.54 ▼1.47 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 5.02 ▲0.03 | 151.44 ▼6.44 | 109.91 ▼7.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5211
register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
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)
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/traffic-stats-widget/wp-traffic-stats-widget.php:336
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Plugin Name: Traffic Stats Widget Plugin===
) - Screenshots: Add images for these screenshots: #1 (On the blog the widget looks like this), #2 (Admin Page)
traffic-stats-widget/wp-traffic-stats-widget.php 92% from 13 tests
The main file in "Plugin Name: Traffic Stats Widget Plugin" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("traffic-stats-widget.php" instead of "wp-traffic-stats-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected296 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 19 | 260 |
JavaScript | 1 | 6 | 0 | 21 |
CSS | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin