Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/alexa-traffic-widget/alexa-traffic-widget.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; AlexaTrafficWidget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.34ms] Passed 4 tests
A check of server-side resources used by Alexa Traffic Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.07 ▼37.10 |
Dashboard /wp-admin | 2.07 ▼1.23 | 4.95 ▼45.42 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 7.17 ▼43.76 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.41 ▼91.08 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.23 ▼32.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_alexatrafficwidget |
Browser metrics Passed 4 tests
An overview of browser requirements for Alexa Traffic Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.44 ▲0.15 | 1.62 ▼0.40 | 39.86 ▼7.83 |
Dashboard /wp-admin | 2,206 ▲21 | 4.89 ▼0.22 | 111.31 ▼5.49 | 41.39 ▼2.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 38.04 ▼2.68 | 33.42 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.58 ▲0.32 | 668.60 ▼26.25 | 50.17 ▼8.34 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.04 | 98.45 ▼10.58 | 43.26 ▼2.56 |
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 gracefully
- > Deprecated in wp-content/plugins/alexa-traffic-widget/alexa-traffic-widget.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; AlexaTrafficWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_alexatrafficwidget
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/alexa-traffic-widget/alexa-traffic-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (alexa traffic widget image)
- Plugin Name: Please specify the plugin name on the first line (
=== alexa-traffic-widget ===
) - Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
alexa-traffic-widget/alexa-traffic-widget.php Passed 13 tests
The main file in "Alexa Traffic Widget" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
26 characters long description:
Shows your site Alexa rank
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected14 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 8 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin