89% rank-with-schema

Code Review | Rank With Schema

WordPress plugin Rank With Schema scored89%from 54 tests.

About plugin

  • Plugin page: rank-with-schema
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Apr 15, 2019
  • Number of updates: 17
  • Update frequency: every 2.9 days
  • Top authors: itshakeel23 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.20MB] [CPU: ▼20.09ms] Passed 4 tests

Analyzing server-side resources used by Rank With Schema
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1233.15 ▼6.89
Dashboard /wp-admin3.44 ▲0.0945.49 ▼17.38
Posts /wp-admin/edit.php3.55 ▲0.2047.14 ▲0.10
Add New Post /wp-admin/post-new.php4.73 ▼1.1540.63 ▼56.18
Media Library /wp-admin/upload.php3.36 ▲0.1334.81 ▲2.57

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables
wp_rwssn_schemas
New WordPress options
widget_recent-comments
can_compress_scripts
schema_display_format
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Rank With Schema
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17813.59 ▼0.805.85 ▲4.0040.33 ▼2.97
Dashboard /wp-admin2,224 ▲335.83 ▲0.02104.54 ▼0.8539.16 ▼10.42
Posts /wp-admin/edit.php2,107 ▲181.99 ▼0.0135.01 ▼0.6633.12 ▲1.15
Add New Post /wp-admin/post-new.php8,803 ▲7,27519.42 ▲0.83947.90 ▲343.4482.33 ▲26.51
Media Library /wp-admin/upload.php1,409 ▲244.20 ▼0.0497.42 ▼3.2841.40 ▼0.98

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • schema_display_format
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2 in rank-with-schema/assets to your readme.txt
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

rank-with-schema/index.php 77% from 13 tests

The main PHP file in "Rank With Schema" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rank-with-schema.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 191 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,020 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP1520221899
JavaScript41122115
CSS3006

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.38
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.24MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png95.22KB26.22KB▼ 72.46%
assets/screenshot-1.png150.84KB36.77KB▼ 75.63%