10% advanced-rank-checker

Code Review | Advanced Rank Checker

WordPress plugin Advanced Rank Checker scored 10% from 54 tests.

About plugin

  • Plugin page: advanced-rank-che...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 27, 2015
  • Latest release: Jun 8, 2015
  • Number of updates: 41
  • Update frequency: every 0.3 days
  • Top authors: BuddyJansen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 3,310 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+445
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.78ms] Passed 4 tests

Analyzing server-side resources used by Advanced Rank Checker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.87 ▼34.74
Dashboard /wp-admin2.05 ▼1.266.02 ▼43.11
Posts /wp-admin/edit.php2.05 ▼1.316.55 ▼41.73
Add New Post /wp-admin/post-new.php2.05 ▼3.846.66 ▼83.54
Media Library /wp-admin/upload.php2.05 ▼1.187.10 ▼24.89
All keywords /wp-admin/edit.php?post_type=rankchecker2.057.26
Rank Checker /wp-admin/admin.php?page=rank_checker2.057.12
Rank Checker options /wp-admin/admin.php?page=rankchecker_options2.055.80
Add New /wp-admin/post-new.php?post_type=rankchecker2.056.42

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Rank Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲15513.21 ▼1.161.89 ▲0.1842.44 ▲2.19
Dashboard /wp-admin2,268 ▲805.87 ▲0.97102.19 ▼11.4444.16 ▲1.11
Posts /wp-admin/edit.php2,150 ▲642.00 ▼0.0544.88 ▲7.6338.37 ▲7.07
Add New Post /wp-admin/post-new.php1,568 ▲5423.37 ▲5.85660.14 ▼19.4549.89 ▼11.78
Media Library /wp-admin/upload.php1,450 ▲624.23 ▲0.03102.03 ▲2.3244.42 ▼0.63
All keywords /wp-admin/edit.php?post_type=rankchecker1,1231.9330.3932.45
Rank Checker /wp-admin/admin.php?page=rank_checker8631.9328.6261.90
Rank Checker options /wp-admin/admin.php?page=rankchecker_options1,5961.9328.1430.98
Add New /wp-admin/post-new.php?post_type=rankchecker1,4582.4848.9346.42

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+445
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 146 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rankchecker
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+63
    Trying to access array offset on value of type bool
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rankchecker
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+31
    Undefined index: page
    • > GET request to /wp-admin/admin.php?page=rank_checker
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+303
    Undefined index: submit

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
Please take a closer look at the following
  • 3× 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/advanced-rank-checker/rankchecker_options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker_dashboard.php:9

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === advanced-rank-checker === )
You can look at the official readme.txt

advanced-rank-checker/rankchecker.php 92% from 13 tests

"Advanced Rank Checker" version 1.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-rank-checker.php" instead of "rankchecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin4,076 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS5519143,317
PHP312967459
SVG100288
JavaScript22512

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/plusteken.png24.08KB13.93KB▼ 42.14%