84% post-meta-viewer

Code Review | Post Meta Viewer

WordPress plugin Post Meta Viewer scored84%from 54 tests.

About plugin

  • Plugin page: post-meta-viewer
  • Plugin version: 2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2020
  • Latest release: Aug 12, 2023
  • Number of updates: 9
  • Update frequency: every 137.3 days
  • Top authors: yongkiagustinus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.64ms] Passed 4 tests

Server-side resources used by Post Meta Viewer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.82 ▼2.22
Dashboard /wp-admin3.34 ▲0.0344.15 ▼6.10
Posts /wp-admin/edit.php3.39 ▲0.0349.42 ▲1.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.54 ▲7.09
Media Library /wp-admin/upload.php3.26 ▲0.0332.37 ▲0.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post Meta Viewer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.131.67 ▼0.3744.94 ▼1.95
Dashboard /wp-admin2,206 ▲155.83 ▲0.9793.52 ▼10.4539.66 ▲0.16
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.1239.49 ▲5.1435.99 ▼3.17
Add New Post /wp-admin/post-new.php6,256 ▲4,73621.74 ▼1.43868.57 ▲260.6682.50 ▲34.92
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0395.03 ▼2.4041.85 ▼2.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files output text when accessed directly:
    • > /wp-content/plugins/post-meta-viewer/post-meta-viewer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: custom field, post meta, post meta viewer

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

The main file in "Post Meta Viewer" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
View all post meta that saved in a post, page or custom post type. No settings needed just plug and play.

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
There were no executable files found in this plugin154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11960122
PO File16732

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin