83% designbro-business-name-generator

Code Review | Business Name Generator

WordPress plugin Business Name Generator scored83%from 54 tests.

About plugin

  • Plugin page: designbro-busines...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2021
  • Latest release: Apr 7, 2023
  • Number of updates: 23
  • Update frequency: every 34.2 days
  • Top authors: designbro (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼12.10ms] Passed 4 tests

Analyzing server-side resources used by Business Name Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.07 ▼0.74
Dashboard /wp-admin3.31 ▼0.0346.32 ▼13.51
Posts /wp-admin/edit.php3.37 ▲0.0143.32 ▼5.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.95 ▼28.59
Media Library /wp-admin/upload.php3.24 ▲0.0137.18 ▲2.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Business Name Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.80 ▼0.5715.78 ▲14.0741.15 ▲1.94
Dashboard /wp-admin2,214 ▲405.62 ▲0.0293.02 ▲8.3742.36 ▲0.13
Posts /wp-admin/edit.php2,116 ▲161.96 ▼0.0634.05 ▼5.3734.90 ▼2.71
Add New Post /wp-admin/post-new.php1,541 ▲623.11 ▲5.12666.95 ▲51.2958.23 ▼13.06
Media Library /wp-admin/upload.php1,416 ▲164.24 ▲0.07113.29 ▲17.0146.88 ▲3.32

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_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/designbro-business-name-generator/designbro-brandnamegenerator.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

designbro-business-name-generator/designbro-brandnamegenerator.php 85% from 13 tests

This is the main PHP file of "Business Name Generator" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("designbro-business-name-generator.php" instead of "designbro-brandnamegenerator.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected344 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS3299217
PHP12159111
JavaScript32716

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin