84% simple-post-meta-manager

Code Review | Simple Post Meta Manager

WordPress plugin Simple Post Meta Manager scored84%from 54 tests.

About plugin

  • Plugin page: simple-post-meta-...
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2013
  • Latest release: Jan 9, 2016
  • Number of updates: 12
  • Update frequency: every 75.6 days
  • Top authors: almos20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.65ms] Passed 4 tests

Analyzing server-side resources used by Simple Post Meta Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.69 ▲2.35
Dashboard /wp-admin3.34 ▼0.0149.46 ▼18.22
Posts /wp-admin/edit.php3.39 ▲0.0347.82 ▼2.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.17 ▼21.93
Media Library /wp-admin/upload.php3.26 ▲0.0335.08 ▼0.09
Meta Manager /wp-admin/edit.php?page=simple-simple-post-meta-manager3.2333.90

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Post Meta Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.75 ▲0.471.73 ▼0.3645.56 ▲3.63
Dashboard /wp-admin2,205 ▲255.69 ▲0.1194.65 ▲1.3738.15 ▼5.17
Posts /wp-admin/edit.php2,110 ▲102.00 ▼0.0241.88 ▲7.0935.75 ▼1.06
Add New Post /wp-admin/post-new.php1,532 ▼323.15 ▲4.99618.41 ▼0.6548.52 ▼32.11
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.04106.30 ▲0.9943.70 ▼0.47
Meta Manager /wp-admin/edit.php?page=simple-simple-post-meta-manager8962.0422.9524.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-post-meta-manager/simple-post-meta-manager.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: post meta, post meta manager, post meta values

simple-post-meta-manager/simple-post-meta-manager.php Passed 13 tests

The main PHP script in "Simple Post Meta Manager" version 1.0.9 is automatically included on every request by WordPress
104 characters long description:
Replace meta values or rename meta keys. It is usefull when custom fields and its values were messed up.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin205 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17225205

PHP code Passed 2 tests

Analyzing 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.41
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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