10% page-rank-stats-for-alexa-google

Code Review | Page Rank Stats for Alexa Google

WordPress plugin Page Rank Stats for Alexa Google scored10%from 54 tests.

About plugin

  • Plugin page: page-rank-stats-f...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Mar 15, 2022
  • Number of updates: 14
  • Update frequency: every 173.5 days
  • Top authors: ximrx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /11,348 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/page-rank-stats-for-alexa-google/gpagerank.php+52
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.45ms] Passed 4 tests

Analyzing server-side resources used by Page Rank Stats for Alexa Google
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.26 ▼1.84
Dashboard /wp-admin3.31 ▼0.0339.32 ▼18.86
Posts /wp-admin/edit.php3.36 ▲0.0148.34 ▲2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.29 ▼19.24
Media Library /wp-admin/upload.php3.24 ▲0.0136.63 ▲2.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_itsuniq_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page Rank Stats for Alexa Google
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.154.92 ▲3.3140.26 ▲0.98
Dashboard /wp-admin2,206 ▲154.86 ▼0.03111.04 ▲3.5542.31 ▼1.94
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0338.32 ▲1.8133.49 ▼3.25
Add New Post /wp-admin/post-new.php1,528 ▼218.30 ▼0.22649.76 ▲40.6259.62 ▲6.38
Media Library /wp-admin/upload.php1,382 ▼64.29 ▲0.09100.13 ▲2.7440.39 ▼4.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_itsuniq_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/page-rank-stats-for-alexa-google/page-rank-stats-for-alexa-google.php:30

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)
There were no browser issues found

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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #2, #3 in page-rank-stats-for-alexa-google/assets to your readme.txt
Please take inspiration from this readme.txt

page-rank-stats-for-alexa-google/page-rank-stats-for-alexa-google.php 92% from 13 tests

"Page Rank Stats for Alexa Google" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 240 characters long)

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 detected226 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22554226

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.00
▷ Minimum class complexity11.00
▷ Maximum class complexity31.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin