84% show-hidden-post-meta

Code Review | Show Hidden Post Meta

WordPress plugin Show Hidden Post Meta scored84%from 54 tests.

About plugin

  • Plugin page: show-hidden-post-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2014
  • Latest release: Sep 26, 2019
  • Number of updates: 7
  • Update frequency: every 298.4 days
  • Top authors: philip.newcomer (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /6,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.00ms] Passed 4 tests

A check of server-side resources used by Show Hidden Post Meta
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.54 ▲6.02
Dashboard /wp-admin3.31 ▲0.0155.92 ▼0.56
Posts /wp-admin/edit.php3.36 ▲0.0052.88 ▼11.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.87 ▼4.95
Media Library /wp-admin/upload.php3.23 ▲0.0036.69 ▲0.53

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Show Hidden Post Meta
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.621.67 ▼0.5438.84 ▼4.08
Dashboard /wp-admin2,203 ▲185.90 ▲0.97109.36 ▼10.2842.81 ▲0.77
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0139.04 ▲0.4632.99 ▼1.45
Add New Post /wp-admin/post-new.php1,514 ▼517.47 ▼5.57663.05 ▼14.2055.87 ▼16.52
Media Library /wp-admin/upload.php1,385 ▼04.20 ▼0.01101.75 ▼2.6045.50 ▲3.74

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_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/show-hidden-post-meta/show-hidden-post-meta.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: post meta, meta, custom fields, admin

show-hidden-post-meta/show-hidden-post-meta.php Passed 13 tests

"Show Hidden Post Meta" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Makes hidden post meta visible on post edit screens

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11232

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin