Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.34MB] [CPU: ▼20.09ms] Passed 4 tests
A check of server-side resources used by Post Meta
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 49.29 ▲6.40 |
Dashboard /wp-admin | 3.57 ▲0.27 | 32.35 ▼18.20 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 37.87 ▼7.86 |
Add New Post /wp-admin/post-new.php | 3.60 ▼2.28 | 38.26 ▼52.27 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 33.38 ▼2.02 |
Post Types /wp-admin/admin.php?page=manage-post-types | 3.55 | 28.31 |
Settings /wp-admin/admin.php?page=post-meta-settings | 3.55 | 28.60 |
Post Meta /wp-admin/admin.php?page=post-meta | 3.55 | 28.87 |
Taxonomies /wp-admin/admin.php?page=manage-taxonomies | 3.55 | 29.57 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options |
---|
pm_settings |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Post Meta
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 14.44 ▲0.06 | 1.76 ▼0.20 | 43.04 ▼5.71 |
Dashboard /wp-admin | 2,244 ▲59 | 4.91 ▼0.94 | 100.25 ▼19.09 | 84.32 ▲41.60 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.39 ▲0.39 | 52.20 ▲16.07 | 35.11 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,578 ▲45 | 18.39 ▼5.00 | 620.16 ▼71.50 | 57.98 ▲5.26 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.25 ▲0.08 | 97.89 ▼11.14 | 76.25 ▲31.03 |
Post Types /wp-admin/admin.php?page=manage-post-types | 1,539 | 2.07 | 39.14 | 69.57 |
Settings /wp-admin/admin.php?page=post-meta-settings | 1,479 | 1.93 | 33.12 | 56.28 |
Post Meta /wp-admin/admin.php?page=post-meta | 1,137 | 2.17 | 31.42 | 39.09 |
Taxonomies /wp-admin/admin.php?page=manage-taxonomies | 1,459 | 2.05 | 33.61 | 44.10 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-taxonomies
- > Notice in wp-content/plugins/post-meta/lib/controllers/pmPostController.php+49
Undefined index: post_type
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-taxonomies
- > Notice in wp-content/plugins/post-meta/lib/views/taxonomy/taxonomy.php+39
Undefined variable: data
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-taxonomies
- > Notice in wp-content/plugins/post-meta/lib/views/taxonomy/taxonomy.php+39
Trying to access array offset on value of type null
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-post-types
- > Notice in wp-content/plugins/post-meta/lib/views/posttype/postTypeAdvOptions.php+144
Undefined variable: field
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage-taxonomies
- > Notice in wp-content/plugins/post-meta/lib/init.php(44) : eval()'d code+61
Undefined variable: html
- > GET request to /wp-admin/admin.php?page=post-meta-settings
- > Notice in wp-content/plugins/post-meta/lib/views/setting/settingFile.php+46
Undefined index: max_file_size_custom
- > GET request to /wp-admin/admin.php?page=manage-taxonomies
- > Notice in wp-content/plugins/post-meta/lib/views/taxonomy/taxonomyAdvOptions.php+60
Undefined variable: object_type
SRP 0% 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 fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/post-meta/lib/helpers/uploader/uploader.php
- > /wp-content/plugins/post-meta/lib/helpers/tinymce/window.php
- > /wp-content/plugins/post-meta/lib/init.php
- > /wp-content/plugins/post-meta/post-meta.php
- > /wp-content/plugins/post-meta/lib/models/enc/pmProInitModel.php
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined index: options in wp-content/plugins/post-meta/lib/views/postField.php on line 107
- > PHP Notice
Undefined variable: field in wp-content/plugins/post-meta/lib/views/postField.php on line 31
- > PHP Notice
Undefined variable: post_type in wp-content/plugins/post-meta/lib/views/postmeta/manageForm.php on line 5
- > PHP Notice
Undefined variable: content in wp-content/plugins/post-meta/lib/views/metaBox.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-meta/lib/views/postmeta/manageForm.php:19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/post-meta/lib/views/postField.php on line 28
- > PHP Notice
Undefined variable: field in wp-content/plugins/post-meta/lib/views/postField.php on line 25
- > PHP Notice
Undefined index: width in wp-content/plugins/post-meta/lib/views/postField.php on line 49
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/post-meta/lib/views/taxonomy/mamageTaxonomies.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-meta/lib/views/setting/settings.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Tags: You are using too many tags: 24 tag instead of maximum 10
post-meta/post-meta.php 92% from 13 tests
Analyzing the main PHP file in "Post Meta" version 1.0.9
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 210 characters long)
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 detected11,033 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 801 | 1,382 | 6,124 |
PHP | 43 | 924 | 196 | 4,406 |
CSS | 5 | 88 | 29 | 503 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 109 | 98.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.80% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.59MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon32.png | 4.53KB | 1.58KB | ▼ 65.19% |
assets/images/remove_duplicate.png | 1.24KB | 0.42KB | ▼ 65.80% |
screenshot-1.png | 86.38KB | 41.74KB | ▼ 51.68% |
assets/images/edit_icon.png | 0.73KB | 0.69KB | ▼ 4.96% |
assets/images/donate-button.png | 16.23KB | 4.55KB | ▼ 71.95% |