90% post-meta-controls

Code Review | Post Meta Controls

WordPress plugin Post Meta Controls scored90%from 54 tests.

About plugin

  • Plugin page: post-meta-controls
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3
  • WordPress version: 6.3.1
  • First release: Jan 20, 2019
  • Latest release: Jan 23, 2021
  • Number of updates: 33
  • Update frequency: every 22.3 days
  • Top authors: melonpan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /11,339 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.43MB] [CPU: ▼6.62ms] Passed 4 tests

Analyzing server-side resources used by Post Meta Controls
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4441.62 ▲3.44
Dashboard /wp-admin3.75 ▲0.4046.33 ▼18.34
Posts /wp-admin/edit.php3.80 ▲0.4453.12 ▲1.29
Add New Post /wp-admin/post-new.php6.33 ▲0.4584.71 ▼12.86
Media Library /wp-admin/upload.php3.67 ▲0.4436.14 ▲3.83

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Meta Controls
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.181.62 ▼0.0838.03 ▼5.37
Dashboard /wp-admin2,200 ▲126.01 ▲0.13100.05 ▼1.5839.05 ▼5.75
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0139.58 ▼1.1533.69 ▼3.85
Add New Post /wp-admin/post-new.php1,532 ▲1819.05 ▼4.71676.07 ▲2.3158.92 ▲8.13
Media Library /wp-admin/upload.php1,385 ▼64.25 ▲0.0592.04 ▼4.2542.38 ▼0.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: meta, post-meta, gutenberg, settings, controls

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

The main PHP script in "Post Meta Controls" version 1.4.1 is automatically included on every request by WordPress
58 characters long description:
Controls to manage post meta data in the Gutenberg editor.

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
No dangerous file extensions were detected2,843 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP375024022,706
JavaScript20153136
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.86
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits8
Classes21
▷ Abstract classes29.52%
▷ Concrete classes1990.48%
▷ Final classes00.00%
Methods119
▷ Static methods00.00%
▷ Public methods3025.21%
▷ Protected methods6655.46%
▷ Private methods2319.33%
Functions33
▷ Named functions2678.79%
▷ Anonymous functions721.21%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin