83% orbisius-random-name-generator

Code Review | Orbisius Random Name Generator

WordPress plugin Orbisius Random Name Generator scored83%from 54 tests.

About plugin

  • Plugin page: orbisius-random-n...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 13, 2021
  • Latest release: May 11, 2022
  • Number of updates: 9
  • Update frequency: every 30.1 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.72ms] Passed 4 tests

Analyzing server-side resources used by Orbisius Random Name Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.41 ▼7.13
Dashboard /wp-admin3.32 ▲0.0248.18 ▲2.55
Posts /wp-admin/edit.php3.38 ▲0.0245.19 ▼1.69
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.54 ▼14.58
Media Library /wp-admin/upload.php3.25 ▲0.0131.16 ▼7.47

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Orbisius Random Name Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼0.991.71 ▼0.4143.81 ▲0.04
Dashboard /wp-admin2,206 ▲154.81 ▼0.04111.40 ▲9.4944.91 ▲1.32
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0735.77 ▼2.6133.77 ▲1.08
Add New Post /wp-admin/post-new.php1,520 ▼1423.30 ▲0.13591.13 ▼92.5356.39 ▲8.61
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0096.30 ▼4.9542.61 ▼2.17

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-random-name-generator/orbisius-random-name-generator.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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 (n/a)
You can take inspiration from this readme.txt

orbisius-random-name-generator/orbisius-random-name-generator.php 85% from 13 tests

Analyzing the main PHP file in "Orbisius Random Name Generator" version 1.0.2
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Domain Path: The domain path folder was not found ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194580

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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