89% cryout-theme-settings

Code Review | Cryout Serious Theme Settings

WordPress plugin Cryout Serious Theme Settings scored89%from 54 tests.

About plugin

  • Plugin page: cryout-theme-sett...
  • Plugin version: 0.5.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2015
  • Latest release: Apr 28, 2023
  • Number of updates: 34
  • Update frequency: every 80.0 days
  • Top authors: Cryout Creations (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

50,000+ active /732,314 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.03MB] [CPU: ▼5.87ms] Passed 4 tests

A check of server-side resources used by Cryout Serious Theme Settings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.19 ▲0.41
Dashboard /wp-admin3.35 ▲0.0451.25 ▼0.04
Posts /wp-admin/edit.php3.40 ▲0.0448.21 ▼2.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.51 ▼20.23
Media Library /wp-admin/upload.php3.27 ▲0.0338.21 ▼0.62
Serious Theme Settings /wp-admin/themes.php?page=cryout-theme-settings3.3944.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Cryout Serious Theme Settings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.22 ▼0.052.10 ▲0.1444.80 ▲3.29
Dashboard /wp-admin2,202 ▲255.62 ▼0.0593.78 ▲4.5541.57 ▼4.41
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0734.96 ▼3.6232.54 ▼1.93
Add New Post /wp-admin/post-new.php1,531 ▲523.03 ▲0.19689.58 ▲35.8155.70 ▼5.22
Media Library /wp-admin/upload.php1,404 ▲44.11 ▼0.16113.34 ▲13.6746.36 ▲0.24
Serious Theme Settings /wp-admin/themes.php?page=cryout-theme-settings9631.9926.9435.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === cryout-theme-settings === )
The official readme.txt might help

cryout-theme-settings/cryout-theme-settings.php 92% from 13 tests

The principal PHP file in "Cryout Serious Theme Settings" v. 0.5.14 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

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
No dangerous file extensions were detected1,385 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP72521801,351
CSS17129
JavaScript1105

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.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
No PNG images were found in this plugin