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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.04 | 49.32 ▼4.41 |
Dashboard /wp-admin | 3.41 ▲0.01 | 41.78 ▲0.94 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 115.25 ▲76.58 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 94.79 ▼1,251.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,200 ▼542 | 15.72 ▲0.07 | 0.33 ▼5.33 | 9.69 ▲7.12 |
Dashboard /wp-admin | 2,895 ▲40 | 6.13 ▼0.02 | 117.52 ▼17.70 | 177.01 ▲14.57 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.01 | 63.21 ▼2.14 | 141.93 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,661 ▼120 | 15.60 ▼6.80 | 404.70 ▼49.71 | 180.13 ▲14.85 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.60 ▲0.07 | 146.89 ▲3.75 | 215.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 2 | 10 | 64 |
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 code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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