10% alexa-traffic-widget

Code Review | Alexa Traffic Widget

WordPress plugin Alexa Traffic Widget scored 10% from 54 tests.

About plugin

  • Plugin page: alexa-traffic-widget
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 15, 2014
  • Latest release: Feb 16, 2014
  • Number of updates: 3
  • Update frequency: every 54.7 days
  • Top authors: 3eo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 4,189 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.07 ▼37.10
Dashboard /wp-admin2.07 ▼1.234.95 ▼45.42
Posts /wp-admin/edit.php2.07 ▼1.287.17 ▼43.76
Add New Post /wp-admin/post-new.php2.07 ▼3.815.41 ▼91.08
Media Library /wp-admin/upload.php2.07 ▼1.165.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.44 ▲0.151.62 ▼0.4039.86 ▼7.83
Dashboard /wp-admin2,206 ▲214.89 ▼0.22111.31 ▼5.4941.39 ▼2.37
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0238.04 ▼2.6833.42 ▲1.62
Add New Post /wp-admin/post-new.php1,533 ▲1323.58 ▲0.32668.60 ▼26.2550.17 ▼8.34
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0498.45 ▼10.5843.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

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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP15814

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 code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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