83% robotswhiz

Code Review | Robots Meta Whiz

WordPress plugin Robots Meta Whiz scored83%from 54 tests.

About plugin

  • Plugin page: robotswhiz
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.7
  • WordPress version: 6.3.1
  • First release: Oct 17, 2015
  • Latest release: Jan 9, 2017
  • Number of updates: 18
  • Update frequency: every 25.1 days
  • Top authors: maratbn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.38ms] Passed 4 tests

This is a short check of server-side resources used by Robots Meta Whiz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.15 ▼4.87
Dashboard /wp-admin3.35 ▲0.0554.06 ▲1.12
Posts /wp-admin/edit.php3.40 ▲0.0453.36 ▼0.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.39 ▼16.77
Media Library /wp-admin/upload.php3.27 ▲0.0438.95 ▲4.04
Robots Meta Whiz /wp-admin/options-general.php?page=plugin_RobotsWhiz_settings3.2735.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Robots Meta Whiz
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.66 ▲0.281.84 ▼0.1142.90 ▼1.82
Dashboard /wp-admin2,213 ▲255.95 ▲1.05105.64 ▲0.3042.79 ▲1.22
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0036.99 ▲1.1935.97 ▼3.67
Add New Post /wp-admin/post-new.php1,517 ▼1617.41 ▼5.75645.10 ▼80.8950.75 ▼9.47
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0496.64 ▼10.4443.67 ▼0.97
Robots Meta Whiz /wp-admin/options-general.php?page=plugin_RobotsWhiz_settings9662.2736.7236.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/robotswhiz/src/robotswhiz/RobotsWhiz.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/robotswhiz/RobotsWhiz.php:69

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 90% 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Robots Meta Whiz configuration screen.)
The official readme.txt might help

robotswhiz/RobotsWhiz.php 85% from 13 tests

This is the main PHP file of "Robots Meta Whiz" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("robotswhiz.php" instead of "RobotsWhiz.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected850 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JSX113939524
PHP15943232
JSON10051
JavaScript3276043

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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
Namespaces1
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin