66% rankchecker-io-integration

Code Review | Rankchecker.io Integration

WordPress plugin Rankchecker.io Integration scored66%from 54 tests.

About plugin

  • Plugin page: rankchecker-io-in...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2020
  • Latest release: Apr 20, 2021
  • Number of updates: 5
  • Update frequency: every 28.0 days
  • Top authors: rankchecker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /10,207 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.41ms] 75% from 4 tests

Analyzing server-side resources used by Rankchecker.io Integration
Please take the time to fix the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,499.18ms on /wp-admin/admin.php?page=rankchecker_dashboard)
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.58 ▲0.77
Dashboard /wp-admin3.39 ▲0.0847.50 ▼0.71
Posts /wp-admin/edit.php3.50 ▲0.1548.68 ▼1.52
Add New Post /wp-admin/post-new.php5.99 ▲0.1087.66 ▼10.18
Media Library /wp-admin/upload.php3.31 ▲0.0834.72 ▼1.23
Settings /wp-admin/admin.php?page=rankchecker_settings4.101,713.93
Dashboard /wp-admin/admin.php?page=rankchecker_dashboard4.101,499.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rankchecker.io Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.32 ▼1.421.74 ▲0.0944.29 ▼4.36
Dashboard /wp-admin2,240 ▲524.82 ▼1.0397.86 ▼6.1840.32 ▼2.16
Posts /wp-admin/edit.php2,120 ▲312.04 ▲0.0535.10 ▼6.4337.87 ▲2.11
Add New Post /wp-admin/post-new.php1,540 ▼217.41 ▼0.77680.96 ▲71.9859.12 ▲6.14
Media Library /wp-admin/upload.php1,419 ▲344.23 ▼0.0298.45 ▲1.0341.56 ▼2.32
Settings /wp-admin/admin.php?page=rankchecker_settings8321.6924.4526.72
Dashboard /wp-admin/admin.php?page=rankchecker_dashboard8222.0222.3825.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rankchecker_dashboard
    • > Notice in wp-content/plugins/rankchecker-io-integration/admin/class-rankchecker-api.php+119
    Trying to access array offset on value of type null

SRP 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/rankchecker-io-integration/public/partials/rankchecker-public-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Rankchecker_Api' not found in wp-content/plugins/rankchecker-io-integration/admin/partials/general-settings-template.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rankchecker-io-integration/admin/class-rankchecker-badge-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Rankchecker_Api' not found in wp-content/plugins/rankchecker-io-integration/admin/partials/dashboard-template.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=rankchecker_dashboard
    • > Network (severe)
    wp-content/plugins/rankchecker/assets/img/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: The official readme.txt is a good inspiration

rankchecker-io-integration/rankchecker.php 92% from 13 tests

This is the main PHP file of "Rankchecker.io Integration" version 1.0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rankchecker-io-integration.php" instead of "rankchecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,607 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
SVG26024959
PHP15274506531
CSS2134111
JavaScript24546

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.22
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods47
▷ Static methods36.38%
▷ Public methods3880.85%
▷ Protected methods24.26%
▷ Private methods714.89%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png4.45KB2.47KB▼ 44.57%