10% igreen-alexa-site-rank

Code Review | Igreen Alexa Site Rank

WordPress plugin Igreen Alexa Site Rank scored10%from 54 tests.

About plugin

  • Plugin page: igreen-alexa-site...
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: May 7, 2013
  • Latest release: Sep 20, 2015
  • Number of updates: 11
  • Update frequency: every 78.8 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,491 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/igreen-alexa-site-rank/index.php+166
    Methods with the same name as their class will not be constructors in a future version of PHP; ParseXml has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼52.84ms] Passed 4 tests

This is a short check of server-side resources used by Igreen Alexa Site Rank
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.88 ▼39.05
Dashboard /wp-admin2.12 ▼1.186.32 ▼40.00
Posts /wp-admin/edit.php2.12 ▼1.245.91 ▼46.24
Add New Post /wp-admin/post-new.php2.12 ▼3.777.49 ▼86.05
Media Library /wp-admin/upload.php2.12 ▼1.115.49 ▼24.05

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_igreen_alexa_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Igreen Alexa Site Rank
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.55 ▼0.831.67 ▼0.2843.05 ▼3.79
Dashboard /wp-admin2,257 ▲725.87 ▲0.99109.21 ▲8.1843.79 ▼1.16
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0239.19 ▼3.1534.36 ▼2.39
Add New Post /wp-admin/post-new.php1,536 ▲823.32 ▼0.08603.59 ▼56.5352.52 ▼1.47
Media Library /wp-admin/upload.php1,385 ▼34.14 ▼0.0894.52 ▼10.1545.79 ▼1.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/igreen-alexa-site-rank/index.php+166
    Methods with the same name as their class will not be constructors in a future version of PHP; ParseXml has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_igreen_alexa_widget
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/igreen-alexa-site-rank/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: alexa api, alexa rank widgets, alexa rank, seo

igreen-alexa-site-rank/index.php 92% from 13 tests

Analyzing the main PHP file in "Igreen Alexa Site Rank" version 4.0.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("igreen-alexa-site-rank.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin190 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP157104190

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.67
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected