84% post-meta-inspector

Code Review | Post Meta Inspector

WordPress plugin Post Meta Inspector scored84%from 54 tests.

About plugin

  • Plugin page: post-meta-inspector
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8
  • WordPress version: 6.3.1
  • First release: Oct 5, 2012
  • Latest release: Jul 31, 2016
  • Number of updates: 15
  • Update frequency: every 113.9 days
  • Top authors: danielbachhuber (80%)philipjohn (20%)automattic (13.33%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /96,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Post Meta Inspector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.29 ▼4.51
Dashboard /wp-admin3.32 ▼0.0242.55 ▼19.68
Posts /wp-admin/edit.php3.37 ▲0.0242.76 ▼3.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.82 ▼16.41
Media Library /wp-admin/upload.php3.24 ▲0.0234.90 ▲1.30

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Post Meta Inspector: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.364.30 ▲2.5343.69 ▲3.32
Dashboard /wp-admin2,209 ▲185.85 ▲0.94100.19 ▼17.6438.88 ▼4.36
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0236.50 ▼0.7833.40 ▼2.52
Add New Post /wp-admin/post-new.php6,257 ▲4,71526.12 ▲7.57873.32 ▲237.0555.84 ▲7.35
Media Library /wp-admin/upload.php1,388 ▲64.13 ▼0.0695.17 ▼4.4941.06 ▼4.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-meta-inspector/post-meta-inspector.php:123

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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 need to be fixed:
  • Screenshots: Screenshot #1 (See the metadata associated with any post using the post meta box) image required
You can look at the official readme.txt

post-meta-inspector/post-meta-inspector.php Passed 13 tests

"Post Meta Inspector" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Peer inside your post meta. Admins can view post meta for any post from a simple meta box.

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
Good job! No executable or dangerous file extensions detected87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1171987

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods233.33%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin