84% page-template-column

Code Review | Page Template Column

WordPress plugin Page Template Column scored84%from 54 tests.

About plugin

  • Plugin page: page-template-column
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 18, 2019
  • Latest release: Sep 18, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: codismo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Page Template Column
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.46 ▼6.08
Dashboard /wp-admin3.31 ▲0.0145.30 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0148.38 ▲3.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.58 ▼6.56
Media Library /wp-admin/upload.php3.23 ▲0.0134.90 ▲1.84

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Page Template Column
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.45 ▲0.081.61 ▼0.2344.61 ▼0.00
Dashboard /wp-admin2,209 ▲245.91 ▲0.0698.38 ▼18.3338.62 ▼5.53
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0139.41 ▲2.6035.60 ▲1.69
Add New Post /wp-admin/post-new.php1,514 ▼2817.85 ▼0.32666.15 ▲40.7742.53 ▼13.52
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0293.70 ▼0.6339.68 ▼2.14

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-template-column/inc/class.general.php:19

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (The pages table)
The official readme.txt might help

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

"Page Template Column" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
87 characters long description:
Adds a column to the pages table in WP Admin > Pages displaying the page template used.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected37 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3224037

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin