89% genesis-title-toggle

Code Review | Genesis Title Toggle

WordPress plugin Genesis Title Toggle scored 89% from 54 tests.

About plugin

  • Plugin page: genesis-title-toggle
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 31, 2011
  • Latest release: Jun 24, 2019
  • Number of updates: 32
  • Update frequency: every 89.2 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

10,000+ active / 280,468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Genesis Title Toggle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.67 ▼7.68
Dashboard /wp-admin3.31 ▲0.0046.21 ▲1.31
Posts /wp-admin/edit.php3.36 ▲0.0047.06 ▲0.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.74 ▼11.84
Media Library /wp-admin/upload.php3.23 ▲0.0033.35 ▼2.76

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Genesis Title Toggle
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.381.56 ▼0.4239.40 ▼15.01
Dashboard /wp-admin2,206 ▲214.86 ▼0.99103.52 ▼1.9638.81 ▼6.71
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0138.01 ▼2.3035.10 ▼2.84
Add New Post /wp-admin/post-new.php1,533 ▲1923.27 ▲5.69601.25 ▼47.7250.26 ▼7.23
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0495.89 ▼18.8943.52 ▼7.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The metabox that shows up on the Edit screen.), #2 (The metabox that shows up on Genesis > Theme Settings.), #3 (If you check "hide" on Theme Settings, this metabox is displayed on the Edit screen.)
The official readme.txt might help

genesis-title-toggle/genesis-title-toggle.php 77% from 13 tests

The primary PHP file in "Genesis Title Toggle" version 1.9.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 157 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
Good job! No executable or dangerous file extensions detected295 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP187156225
PO File2153270

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin