84% omit-parent-theme-page-templates

Code Review | Omit Parent Theme Page Templates

WordPress plugin Omit Parent Theme Page Templates scored84%from 54 tests.

About plugin

  • Plugin page: omit-parent-theme...
  • Plugin version: 1.2a...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Mar 27, 2014
  • Number of updates: 13
  • Update frequency: every 25.9 days
  • Top authors: MikeSchinkel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,930 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Omit Parent Theme Page Templates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.29 ▼3.67
Dashboard /wp-admin3.33 ▼0.0245.50 ▼19.70
Posts /wp-admin/edit.php3.38 ▲0.0251.20 ▲0.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.07 ▼10.68
Media Library /wp-admin/upload.php3.25 ▲0.0234.59 ▲1.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Omit Parent Theme Page Templates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.74 ▲0.311.87 ▲0.2940.50 ▼2.70
Dashboard /wp-admin2,192 ▲125.55 ▼0.1285.97 ▼4.8138.98 ▲1.90
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0335.95 ▼2.2233.14 ▼3.61
Add New Post /wp-admin/post-new.php1,532 ▲423.11 ▼0.30651.84 ▲26.8856.05 ▲7.21
Media Library /wp-admin/upload.php1,394 ▼64.27 ▲0.0395.96 ▼0.4841.04 ▼1.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omit-parent-theme-page-templates/omit-parent-theme-page-templates.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: pages, template, page template, page templates, page...

omit-parent-theme-page-templates/omit-parent-theme-page-templates.php 92% from 13 tests

This is the main PHP file of "Omit Parent Theme Page Templates" version 1.2a..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.2a...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11412076

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin