84% widgetized-page-template

Code Review | Widgetized Page Template

WordPress plugin Widgetized Page Template scored84%from 54 tests.

About plugin

  • Plugin page: widgetized-page-t...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5
  • WordPress version: 6.3.1
  • First release: Mar 6, 2017
  • Latest release: Aug 1, 2020
  • Number of updates: 14
  • Update frequency: every 88.8 days
  • Top authors: ajvillegas (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,074 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Widgetized Page Template
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.05 ▼3.60
Dashboard /wp-admin3.31 ▼0.0445.46 ▼13.45
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.72 ▼27.37
Media Library /wp-admin/upload.php3.23 ▲0.0033.08 ▲1.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Widgetized Page Template
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.491.76 ▼0.0446.15 ▲3.02
Dashboard /wp-admin2,206 ▲184.84 ▼1.04104.95 ▼11.4439.83 ▼3.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0541.18 ▲3.0834.06 ▲0.38
Add New Post /wp-admin/post-new.php1,533 ▲1323.00 ▼0.17641.27 ▼16.8759.86 ▲1.74
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0898.59 ▲2.6742.02 ▲0.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/widgetized-page-template/templates/page_widgetized.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

widgetized-page-template/widgetized-page-template.php Passed 13 tests

Analyzing the main PHP file in "Widgetized Page Template" version 1.1.0
133 characters long description:
Automatically generate a page-specific widget area that replaces the content of the page when selecting the Widgetized Page template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin440 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9216542373
PO File1131867

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin