89% gotham-block-extra-light

Code Review | Gotham Block Extra Light

WordPress plugin Gotham Block Extra Light scored89%from 54 tests.

About plugin

  • Plugin page: gotham-block-extr...
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Aug 21, 2023
  • Number of updates: 43
  • Update frequency: every 29.3 days
  • Top authors: gothamdev (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

90+ active /5,049 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 gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.88ms] Passed 4 tests

Server-side resources used by Gotham Block Extra Light
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0852.47 ▲8.15
Dashboard /wp-admin3.40 ▲0.0556.82 ▼13.16
Posts /wp-admin/edit.php3.45 ▲0.0949.17 ▼2.54
Add New Post /wp-admin/post-new.php5.98 ▲0.09104.68 ▲5.94
Media Library /wp-admin/upload.php3.32 ▲0.0939.75 ▲2.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Gotham Block Extra Light
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10814.14 ▼0.231.86 ▼0.0944.27 ▲1.89
Dashboard /wp-admin2,263 ▲865.64 ▲0.0898.60 ▲8.5643.31 ▲6.11
Posts /wp-admin/edit.php2,166 ▲661.99 ▲0.0137.20 ▼1.3832.20 ▼6.76
Add New Post /wp-admin/post-new.php1,460 ▼6816.61 ▼6.65599.67 ▼58.9147.02 ▼5.83
Media Library /wp-admin/upload.php1,462 ▲624.24 ▲0.08100.81 ▼6.2443.84 ▲1.55

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === Gotham Block Extra Light === )
Please take inspiration from this readme.txt

gotham-block-extra-light/gothamblock.php 85% from 13 tests

The principal PHP file in "Gotham Block Extra Light" v. 1.5.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 317 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gotham-block-extra-light.php" instead of "gothamblock.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin874 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5204107716
JavaScript3479158

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
stop.png12.60KB5.62KB▼ 55.41%
ok.png1.88KB1.89KB0.00%