Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.92ms] Passed 4 tests
A check of server-side resources used by Post Meta Data Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.40 ▼7.83 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.42 ▲0.18 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.27 ▲5.93 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.38 ▼9.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.39 ▲1.67 |
PMDM Settings /wp-admin/admin.php?page=pmdm-general-settings | 3.28 | 32.65 |
Help /wp-admin/admin.php?page=pmdm-help | 3.25 | 31.06 |
Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Post Meta Data Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲30 | 14.25 ▼0.06 | 1.94 ▼0.03 | 37.87 ▼3.39 |
Dashboard /wp-admin | 2,222 ▲42 | 5.63 ▲0.03 | 84.50 ▼3.19 | 38.01 ▼2.85 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.94 ▼0.02 | 40.74 ▼2.75 | 36.65 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 23.02 ▼0.61 | 669.19 ▲37.49 | 50.91 ▼4.51 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.10 ▼0.10 | 103.32 ▲5.09 | 42.47 ▲1.70 |
PMDM Settings /wp-admin/admin.php?page=pmdm-general-settings | 980 | 2.33 | 28.65 | 24.21 |
Help /wp-admin/admin.php?page=pmdm-help | 803 | 1.97 | 27.11 | 27.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/post-meta-data-manager/post-meta-data-manager.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: tools, meta fiedls editor, inspector, meta, post meta...
post-meta-data-manager/post-meta-data-manager.php 85% from 13 tests
The primary PHP file in "Post Meta Data Manager" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "6.0.1")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,450 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 223 | 227 | 747 |
JavaScript | 2 | 72 | 105 | 528 |
CSS | 2 | 33 | 11 | 129 |
Markdown | 2 | 20 | 0 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/css/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
includes/css/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
includes/css/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
includes/css/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
includes/css/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |