90% storefront-title-toggle

Code Review | Title Toggle for Storefront Theme

WordPress plugin Title Toggle for Storefront Theme scored90%from 54 tests.

About plugin

  • Plugin page: storefront-title-...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 26
  • Update frequency: every 121.0 days
  • Top authors: Wooassist (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

6,000+ active /92,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Title Toggle for Storefront Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.46 ▼5.74
Dashboard /wp-admin3.31 ▼0.0448.47 ▼17.70
Posts /wp-admin/edit.php3.36 ▲0.0046.56 ▼4.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.74 ▼17.89
Media Library /wp-admin/upload.php3.23 ▲0.0033.87 ▼4.63

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
storefront-title-toggle-version
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Title Toggle for Storefront Theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.114.69 ▲2.3442.32 ▲2.07
Dashboard /wp-admin2,206 ▲185.88 ▲0.0299.88 ▼5.5942.57 ▲1.02
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.1136.76 ▼4.0634.69 ▼2.55
Add New Post /wp-admin/post-new.php1,537 ▼523.07 ▲4.89684.48 ▲70.2972.53 ▲22.17
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.05109.41 ▲7.6348.65 ▲2.60

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • storefront-title-toggle-version
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: toggle, storefront, title, remove

storefront-title-toggle/storefront-title-toggle.php Passed 13 tests

This is the main PHP file of "Title Toggle for Storefront Theme" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
Hide titles on a per post/page basis. Must be using the Storefront theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin182 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP270172182

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin