94% simple-pcme

Code Review | Simple Product Category Meta Editor

WordPress plugin Simple Product Category Meta Editor scored 94% from 54 tests.

About plugin

  • Plugin page: simple-pcme
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.1
  • WordPress version: 5.9.2
  • First release: Jun 18, 2019
  • Latest release: Jul 21, 2019
  • Number of updates: 16
  • Update frequency: every 2.1 days
  • Top authors: slappy99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 411 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.03MB] [CPU: ▼314.06ms] Passed 4 tests

This is a short check of server-side resources used by Simple Product Category Meta Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0449.32 ▼4.41
Dashboard /wp-admin3.41 ▲0.0141.78 ▲0.94
Posts /wp-admin/edit.php3.65 ▲0.01115.25 ▲76.58
Add New Post /wp-admin/post-new.php6.89 ▼0.0994.79 ▼1,251.43
Media Library /wp-admin/upload.php3.30 ▲0.0026.24 ▼1.32

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Product Category Meta Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,200 ▼54215.72 ▲0.070.33 ▼5.339.69 ▲7.12
Dashboard /wp-admin2,895 ▲406.13 ▼0.02117.52 ▼17.70177.01 ▲14.57
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0163.21 ▼2.14141.93 ▼4.74
Add New Post /wp-admin/post-new.php1,661 ▼12015.60 ▼6.80404.70 ▼49.71180.13 ▲14.85
Media Library /wp-admin/upload.php1,698 ▼05.60 ▲0.07146.89 ▲3.75215.01 ▼46.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-pcme/simple-pcme.php:13

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 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Simple Product Category Meta Editor === )
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

simple-pcme/simple-pcme.php Passed 13 tests

"Simple Product Category Meta Editor" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
Add and edit two meta tags for WooCommerce Product Category pages. Meta tags "title" and "description" for SEO purposes.

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
There were no executable files found in this plugin64 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP321064

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
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
There are no PNG files in this plugin