84% theme-blvd-post-template-options

Code Review | Theme Blvd Post Template Options

WordPress plugin Theme Blvd Post Template Options scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-post-t...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: Aug 2, 2013
  • Number of updates: 2
  • Update frequency: every 10.0 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,358 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.50ms] Passed 4 tests

This is a short check of server-side resources used by Theme Blvd Post Template Options
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.44 ▼8.47
Dashboard /wp-admin3.33 ▲0.0352.00 ▲2.82
Posts /wp-admin/edit.php3.38 ▲0.0352.38 ▲2.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.92 ▼26.96
Media Library /wp-admin/upload.php3.26 ▲0.0339.27 ▲7.10

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Theme Blvd Post Template Options
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.35 ▼0.951.68 ▼0.0741.08 ▼5.27
Dashboard /wp-admin2,216 ▲345.87 ▼0.04112.48 ▲11.5146.73 ▲5.07
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0339.99 ▲3.7837.55 ▲4.74
Add New Post /wp-admin/post-new.php1,551 ▲3718.39 ▲0.99628.60 ▼72.7846.83 ▼3.91
Media Library /wp-admin/upload.php1,401 ▲194.23 ▲0.0497.29 ▼5.5040.29 ▼2.65

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-post-template-options/tb-post-template-options.php:30

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: template, theme blvd, themeblvd, post list, query...

theme-blvd-post-template-options/tb-post-template-options.php 92% from 13 tests

"Theme Blvd Post Template Options" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("theme-blvd-post-template-options.php" instead of "tb-post-template-options.php")

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
Success! There were no dangerous files found in this plugin125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12268125

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin