79% ranktool

Code Review | Rank Tools

WordPress plugin Rank Tools scored79%from 54 tests.

About plugin

  • Plugin page: ranktool
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.7
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Oct 30, 2013
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: santosh1987 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /976 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.73ms] Passed 4 tests

Analyzing server-side resources used by Rank Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.48 ▼6.74
Dashboard /wp-admin3.37 ▲0.0743.75 ▼4.05
Posts /wp-admin/edit.php3.41 ▲0.0544.31 ▼7.07
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.03 ▼21.07
Media Library /wp-admin/upload.php3.31 ▲0.0833.49 ▼1.24

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Rank Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.56 ▼1.124.75 ▲2.7141.14 ▼1.82
Dashboard /wp-admin2,206 ▲215.86 ▲0.05107.32 ▲5.2841.88 ▼0.26
Posts /wp-admin/edit.php2,089 ▼02.06 ▼0.0039.62 ▼0.5334.55 ▼0.93
Add New Post /wp-admin/post-new.php1,539 ▲1623.06 ▼0.26626.94 ▲18.4572.28 ▲15.56
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0295.73 ▼6.5939.10 ▼3.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 14× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/ranktool/src/modules/seostats.sistrix.php
    • > /wp-content/plugins/ranktool/src/interfaces/package.php
    • > /wp-content/plugins/ranktool/src/modules/seostats.google.php
    • > /wp-content/plugins/ranktool/src/interfaces/services.php
    • > /wp-content/plugins/ranktool/src/helper/seostats.exception.php
    • > /wp-content/plugins/ranktool/src/helper/seostats.urlhelper.php
    • > /wp-content/plugins/ranktool/src/modules/seostats.semrush.php
    • > /wp-content/plugins/ranktool/src/interfaces/api-keys.php
    • > /wp-content/plugins/ranktool/html.php
    • > /wp-content/plugins/ranktool/src/modules/seostats.alexa.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ranktool/ranktool.php:13
    • > PHP Notice
      Undefined index: domain_urls in wp-content/plugins/ranktool/html.php on line 12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: seo tools, ranking check, sandeveloper

ranktool/ranktool.php Passed 13 tests

Analyzing the main PHP file in "Rank Tools" version 1.0
113 characters long description:
A plugin to Finding domain ranking For multiple domains , use [RANKING-TOOL] shortcode to display tool in a page.

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
There were no executable files found in this plugin1,761 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP183568781,761

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.54
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces6
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods117
▷ Static methods3025.64%
▷ Public methods10085.47%
▷ Protected methods00.00%
▷ Private methods1714.53%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants47
▷ Global constants1021.28%
▷ Class constants3778.72%
▷ Public constants37100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin