Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.32ms] Passed 4 tests
An overview of server-side resources used by iG:Custom Metaboxes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.74 ▼6.06 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.70 ▼3.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.30 ▼0.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.74 ▼11.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.35 ▲1.45 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
iG:Custom Metaboxes: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼0.99 | 4.46 ▲2.66 | 45.24 ▼1.56 |
Dashboard /wp-admin | 2,209 ▲38 | 4.81 ▼0.03 | 98.27 ▼17.92 | 41.62 ▼6.66 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 40.53 ▲1.97 | 35.60 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.46 ▲0.27 | 678.92 ▲47.56 | 55.32 ▲5.68 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.24 ▲0.04 | 97.32 ▼8.49 | 43.60 ▲1.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'iG\\Metabox\\Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/select-field.php:12
- > PHP Fatal error
Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/number-field.php:10
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'iG\\Metabox\\Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/text-field.php:12
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input-radio.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/email-field.php:10
- > PHP Fatal error
Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/color-field.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input-color.php:10
- > PHP Fatal error
Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/checkbox-field.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ig-custom-metaboxes/ig-custom-metaboxes.php 92% from 13 tests
The main PHP script in "iG:Custom Metaboxes" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 191 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
No dangerous file extensions were detected962 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 369 | 680 | 881 |
Markdown | 1 | 10 | 0 | 65 |
JavaScript | 1 | 8 | 9 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 6 | 6.74% |
▷ Public methods | 66 | 74.16% |
▷ Protected methods | 22 | 24.72% |
▷ Private methods | 1 | 1.12% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin