84% simple-post-meta

Code Review | Simple Post Meta

WordPress plugin Simple Post Meta scored84%from 54 tests.

About plugin

  • Plugin page: simple-post-meta
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 1, 2017
  • Latest release: May 1, 2017
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: saurabhbtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.09MB] [CPU: ▼9.55ms] Passed 4 tests

Analyzing server-side resources used by Simple Post Meta
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.91 ▲1.91
Dashboard /wp-admin3.32 ▲0.0250.41 ▼1.73
Posts /wp-admin/edit.php3.37 ▲0.0245.90 ▼3.61
Add New Post /wp-admin/post-new.php5.46 ▼0.4376.03 ▼34.60
Media Library /wp-admin/upload.php3.25 ▲0.0238.13 ▲1.76

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Post Meta
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.011.94 ▼0.2843.87 ▼2.93
Dashboard /wp-admin2,196 ▲165.53 ▼0.1287.83 ▼1.7837.76 ▼2.87
Posts /wp-admin/edit.php2,104 ▲72.01 ▲0.0235.55 ▼1.4033.23 ▼3.41
Add New Post /wp-admin/post-new.php6,299 ▲4,77125.73 ▲3.08909.61 ▲256.6467.67 ▼11.86
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.03112.97 ▲3.7947.12 ▼0.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-post-meta/simple-post-meta.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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
No tags were found

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

This is the main PHP file of "Simple Post Meta" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
135 characters long description:
Simple Post Meta is awsome plugin for show post id, post aurthor, post type, post slug, and all meta information related to post, page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin129 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP21633109
CSS10012
JavaScript1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.98KB20.23KB▼ 48.09%