90% meta-by-path

Code Review | Meta By Path

WordPress plugin Meta By Path scored90%from 54 tests.

About plugin

  • Plugin page: meta-by-path
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: Jun 5, 2019
  • Number of updates: 6
  • Update frequency: every 36.0 days
  • Top authors: nettantra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /699 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼12.33ms] Passed 4 tests

An overview of server-side resources used by Meta By Path
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1337.21 ▼3.01
Dashboard /wp-admin3.45 ▲0.1441.84 ▼10.21
Posts /wp-admin/edit.php3.48 ▲0.1249.89 ▲1.09
Add New Post /wp-admin/post-new.php6.12 ▲0.2371.31 ▼31.58
Media Library /wp-admin/upload.php3.39 ▲0.1630.10 ▼4.51
Meta By Path /wp-admin/options-general.php?page=meta-by-path3.3130.24

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_meta_by_path
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Meta By Path
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.84 ▲0.181.86 ▲0.2737.90 ▼8.68
Dashboard /wp-admin2,210 ▲224.86 ▼1.02110.96 ▲4.2543.69 ▲3.80
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0139.36 ▼2.1235.30 ▼1.40
Add New Post /wp-admin/post-new.php1,536 ▲1723.22 ▼0.13665.26 ▲20.6551.73 ▼13.41
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0993.06 ▼7.3741.90 ▼1.31
Meta By Path /wp-admin/options-general.php?page=meta-by-path8922.1529.2027.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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 by url, tags, seo, meta tags, seo meta tags

meta-by-path/meta-by-path.php 92% from 13 tests

The main PHP script in "Meta By Path" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected630 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36823372
JavaScript1285197
CSS12061

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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