83% ops-robots-txt

Code Review | On Page SEO + Social Live Chat (Formerly OPS)

WordPress plugin On Page SEO + Social Live Chat (Formerly OPS) scored83%from 54 tests.

About plugin

  • Plugin page: ops-robots-txt
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 3, 2021
  • Latest release: Jun 11, 2022
  • Number of updates: 53
  • Update frequency: every 8.2 days
  • Top authors: rishikeshsingh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,146 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.98ms] Passed 4 tests

Server-side resources used by On Page SEO + Social Live Chat (Formerly OPS)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.14 ▼5.69
Dashboard /wp-admin3.38 ▲0.0750.28 ▼0.22
Posts /wp-admin/edit.php3.43 ▲0.0746.87 ▼2.44
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.68 ▼3.58
Media Library /wp-admin/upload.php3.30 ▲0.0740.98 ▲6.13

Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • Illegal file modification detected: 1 file (0.88KB) outside of "wp-content/plugins/ops-robots-txt/" and "wp-content/uploads/"
    • (new file) robots.txt
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for On Page SEO + Social Live Chat (Formerly OPS)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲13013.77 ▼0.491.85 ▼0.0538.21 ▼12.11
Dashboard /wp-admin2,227 ▲425.23 ▲0.36105.96 ▲0.3334.22 ▼10.96
Posts /wp-admin/edit.php2,116 ▲242.64 ▲0.6239.89 ▲0.9331.18 ▼4.13
Add New Post /wp-admin/post-new.php1,697 ▲18325.35 ▲7.84603.02 ▼93.3151.25 ▼3.95
Media Library /wp-admin/upload.php1,479 ▲884.46 ▲0.2898.57 ▼3.9340.93 ▼2.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/ops-robots-txt/uninstall.php
    • > /wp-content/plugins/ops-robots-txt/settings.php
    • > /wp-content/plugins/ops-robots-txt/ops.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention:
  • License uri: Please fix this invalid URI: "http: //www.gnu.org/licenses/gpl-2.0.html"
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

ops-robots-txt/ops.php 77% from 13 tests

The main PHP file in "On Page SEO + Social Live Chat (Formerly OPS)" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/i18n/" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("ops-robots-txt.php" instead of "ops.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 375 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected598 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP43363489
CSS38995
JavaScript301314

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ninja.png5.82KB3.10KB▼ 46.69%
assets/images/whatsapp.png2.76KB2.08KB▼ 24.66%
assets/images/logo-seo.png9.96KB4.68KB▼ 52.95%
assets/images/icon-128x128.png9.96KB4.68KB▼ 52.95%