84% genesis-beta-tester

Code Review | Genesis Beta Tester

WordPress plugin Genesis Beta Tester scored84%from 54 tests.

About plugin

  • Plugin page: genesis-beta-tester
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2012
  • Latest release: Aug 7, 2023
  • Number of updates: 24
  • Update frequency: every 176.3 days
  • Top authors: nathanrice (54.17%)studiopress (45.83%)Nick_theGeek (8.33%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /15,441 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.00MB] [CPU: ▼7.60ms] Passed 4 tests

This is a short check of server-side resources used by Genesis Beta Tester
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.90 ▼4.53
Dashboard /wp-admin3.31 ▲0.0047.66 ▼4.22
Posts /wp-admin/edit.php3.36 ▲0.0045.22 ▼3.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.89 ▼18.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.16 ▲1.80

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Beta Tester
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.086.32 ▲4.5843.34 ▼0.38
Dashboard /wp-admin2,209 ▲215.85 ▲0.9398.54 ▼17.1339.65 ▼6.53
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0134.23 ▼1.7730.24 ▼3.77
Add New Post /wp-admin/post-new.php1,535 ▲123.28 ▲0.24657.75 ▲38.9357.59 ▲2.05
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.03102.53 ▲4.6045.69 ▲3.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/genesis-beta-tester/genesis-beta-tester.php:20

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === genesis-beta-tester === )
The official readme.txt might help

genesis-beta-tester/genesis-beta-tester.php Passed 13 tests

"Genesis Beta Tester" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Genesis Beta Tester lets you one-click update to the latest version of Genesis, even if it is still in beta.

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
There were no executable files found in this plugin407 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON300280
JavaScript116872
PHP2234134
YAML13019
Markdown1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin