83% theme-grep-by-boldgrid

Code Review | Theme Grep by BoldGrid

WordPress plugin Theme Grep by BoldGrid scored83%from 54 tests.

About plugin

  • Plugin page: theme-grep-by-bol...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Mar 28, 2023
  • Number of updates: 17
  • Update frequency: every 87.7 days
  • Top authors: boldgrid (82.35%)bwmarkle (17.65%)joemoto (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.79ms] Passed 4 tests

Analyzing server-side resources used by Theme Grep by BoldGrid
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.37 ▼3.77
Dashboard /wp-admin3.36 ▲0.0146.43 ▼16.13
Posts /wp-admin/edit.php3.48 ▲0.1250.91 ▲1.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.06 ▼4.59
Media Library /wp-admin/upload.php3.29 ▲0.0534.34 ▲1.32
Theme Grep /wp-admin/tools.php?page=boldgrid-theme-grep3.43209.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Theme Grep by BoldGrid
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.331.58 ▼0.0140.75 ▲0.13
Dashboard /wp-admin2,210 ▲225.79 ▼0.0795.13 ▼11.5843.48 ▲0.61
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0340.23 ▼0.8537.23 ▼0.51
Add New Post /wp-admin/post-new.php1,545 ▲2618.58 ▼4.56602.92 ▼96.8551.99 ▼3.24
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.1299.52 ▲3.3843.89 ▼1.88
Theme Grep /wp-admin/tools.php?page=boldgrid-theme-grep7,2652.4982.96130.20

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/theme-grep-by-boldgrid/admin/partials/boldgrid-theme-grep-admin-display.php:14

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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === theme-grep-by-boldgrid === )
You can take inspiration from this readme.txt

theme-grep-by-boldgrid/boldgrid-theme-grep.php 85% from 13 tests

The main PHP script in "Theme Grep by BoldGrid" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • 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: Name the main plugin file the same as the plugin slug ("theme-grep-by-boldgrid.php" instead of "boldgrid-theme-grep.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
Everything looks great! No dangerous files found in this plugin663 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP121261,007309
JavaScript23530283
CSS113668
Markdown1203

PHP code Passed 2 tests

A short 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.28
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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