94% quick-meta-editor-for-custom-post-types

Code Review | Quick Meta Editor For Custom Post Types

WordPress plugin Quick Meta Editor For Custom Post Types scored 94% from 54 tests.

About plugin

  • Plugin page: quick-meta-editor...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 5.8.1
  • First release: Jan 17, 2021
  • Latest release: Jan 17, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: irato99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 123 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼146.29ms] Passed 4 tests

This is a short check of server-side resources used by Quick Meta Editor For Custom Post Types
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1343.43 ▲17.68
Dashboard /wp-admin3.08 ▲0.0240.85 ▼17.07
Posts /wp-admin/edit.php3.16 ▲0.0652.57 ▲1.26
Add New Post /wp-admin/post-new.php5.43 ▲0.00106.08 ▼566.22
Media Library /wp-admin/upload.php3.02 ▲0.0236.32 ▼3.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Meta Editor For Custom Post Types
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,730 ▲13416.61 ▲0.9711.84 ▲2.6653.85 ▲0.09
Dashboard /wp-admin2,997 ▲666.71 ▲0.52184.55 ▲26.58144.60 ▲25.32
Posts /wp-admin/edit.php2,766 ▲272.79 ▲0.0782.65 ▲9.02129.19 ▲30.65
Add New Post /wp-admin/post-new.php1,635 ▲5421.71 ▲3.03355.81 ▼52.62142.26 ▲23.79
Media Library /wp-admin/upload.php1,834 ▲275.54 ▲0.53192.63 ▲21.57154.87 ▲23.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/quick-meta-editor-for-custom-post-types/cpt-meta-editor-admin-view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-meta-editor-for-custom-post-types/cpt-meta-editor.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: meta data, custom post type

quick-meta-editor-for-custom-post-types/cpt-meta-editor.php 85% from 13 tests

Analyzing the main PHP file in "Quick Meta Editor For Custom Post Types" version 1.0
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("quick-meta-editor-for-custom-post-types.php" instead of "cpt-meta-editor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin235 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2248122
PHP22210112
CSS1061

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin