84% simple-meta-shortcode

Code Review | Meta Shortcode

WordPress plugin Meta Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: simple-meta-short...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 10, 2020
  • Latest release: Jun 10, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: riadboukirou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.98ms] Passed 4 tests

An overview of server-side resources used by Meta Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.78 ▼0.95
Dashboard /wp-admin3.31 ▲0.0146.40 ▼4.24
Posts /wp-admin/edit.php3.36 ▲0.0047.84 ▼0.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.18 ▼0.84
Media Library /wp-admin/upload.php3.23 ▲0.0034.52 ▼1.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Meta Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.67 ▼0.324.51 ▲2.7243.50 ▼0.10
Dashboard /wp-admin2,206 ▲185.88 ▼0.00107.18 ▼0.2544.88 ▲3.70
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0042.16 ▲3.9937.77 ▲3.93
Add New Post /wp-admin/post-new.php1,514 ▼1917.66 ▼5.46649.75 ▼39.4647.47 ▼5.53
Media Library /wp-admin/upload.php1,385 ▼34.28 ▲0.0498.00 ▼13.0742.39 ▼5.79

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-meta-shortcode/simple-meta-shortcode.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

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

"Meta Shortcode" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
A light plugin that allows you to easly shorcode your post meta data.

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
There were no executable files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14810

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin