89% title-tagline-for-genesis

Code Review | Title Tagline for Genesis

WordPress plugin Title Tagline for Genesis scored89%from 54 tests.

About plugin

  • Plugin page: title-tagline-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 11, 2016
  • Latest release: Oct 12, 2016
  • Number of updates: 3
  • Update frequency: every 20.0 days
  • Top authors: phpbits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.61ms] Passed 4 tests

Analyzing server-side resources used by Title Tagline for Genesis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.90 ▼0.52
Dashboard /wp-admin3.32 ▲0.0254.80 ▲2.12
Posts /wp-admin/edit.php3.37 ▲0.0146.38 ▼6.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.13 ▼20.58
Media Library /wp-admin/upload.php3.24 ▲0.0136.02 ▲1.08

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Title Tagline for Genesis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.131.72 ▲0.0844.56 ▲0.50
Dashboard /wp-admin2,195 ▲215.54 ▼0.0998.76 ▲2.1242.37 ▼0.47
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0134.95 ▼5.6834.41 ▲0.47
Add New Post /wp-admin/post-new.php6,226 ▲4,70026.16 ▲2.56956.29 ▲284.7370.38 ▲8.59
Media Library /wp-admin/upload.php1,397 ▼34.18 ▲0.0498.50 ▼9.9945.67 ▼1.06

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Metabox)
The official readme.txt is a good inspiration

title-tagline-for-genesis/plugin.php 85% from 13 tests

The principal PHP file in "Title Tagline for Genesis" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("title-tagline-for-genesis.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin43 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2182143

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.94KB15.31KB▼ 52.08%