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: 5.9.2
  • 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

60+ active / 3,067 total downloads

Benchmarks

Plugin footprint 58% 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
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+445
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼2.39MB] [CPU: ▼343.85ms] Passed 4 tests

Analyzing server-side resources used by Advanced Rank Checker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.98 ▼1.544.92 ▼47.18
Dashboard /wp-admin2.00 ▼1.414.44 ▼29.97
Posts /wp-admin/edit.php2.00 ▼1.654.38 ▼35.64
Add New Post /wp-admin/post-new.php2.00 ▼4.985.11 ▼1,262.62
Media Library /wp-admin/upload.php2.00 ▼1.304.50 ▼18.36
Add New /wp-admin/post-new.php?post_type=rankchecker2.004.78
All keywords /wp-admin/edit.php?post_type=rankchecker2.004.81
Rank Checker /wp-admin/admin.php?page=rank_checker2.005.02
Rank Checker options /wp-admin/admin.php?page=rankchecker_options2.004.89

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Rank Checker: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,848 ▲12615.62 ▼0.085.97 ▼0.832.29 ▲0.25
Dashboard /wp-admin2,973 ▲1125.99 ▼0.15118.28 ▼27.00172.11 ▲7.12
Posts /wp-admin/edit.php2,767 ▲733.25 ▲0.0165.34 ▲0.29157.36 ▲6.04
Add New Post /wp-admin/post-new.php1,715 ▲5416.21 ▼0.04433.22 ▲13.68156.09 ▲2.82
Media Library /wp-admin/upload.php1,780 ▲825.56 ▲0.05135.56 ▼6.96210.55 ▲24.38
Add New /wp-admin/post-new.php?post_type=rankchecker1,9343.9994.67147.06
All keywords /wp-admin/edit.php?post_type=rankchecker1,4503.1663.41126.99
Rank Checker /wp-admin/admin.php?page=rank_checker1,0872.7657.32107.35
Rank Checker options /wp-admin/admin.php?page=rankchecker_options1,8352.7959.43100.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • 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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check 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/admin.php?page=rankchecker_options
    • > Notice in wp-content/plugins/advanced-rank-checker/rankchecker_options.php+94
    Trying to access array offset on value of type bool
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=rankchecker
    • > POST request to /wp-admin/admin-ajax.php
    • > 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix 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.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker_dashboard.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker_options.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === advanced-rank-checker === )
Please take inspiration from this readme.txt

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

"Advanced Rank Checker" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,076 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS5519143,317
PHP312967459
SVG100288
JavaScript22512

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues 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

All PNG images should be compressed to minimize bandwidth usage for end users
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%