Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.45ms] Passed 4 tests
A check of server-side resources used by CUSTOM OPTIONS PLUS POST IN
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.11 | 36.13 ▼5.12 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.97 ▼4.11 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 52.01 ▲3.79 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 86.64 ▼16.34 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.65 ▲4.61 |
Custom Option(coppi) /wp-admin/options-general.php?page=coppi | 3.27 | 30.70 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for CUSTOM OPTIONS PLUS POST IN
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.16 | 1.64 ▼0.13 | 39.06 ▲1.43 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.04 | 101.43 ▼3.87 | 38.76 ▼1.74 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.00 | 39.81 ▲4.55 | 35.35 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,522 ▼1 | 23.19 ▼0.18 | 625.57 ▼19.29 | 51.96 ▲7.46 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.06 | 95.46 ▼6.20 | 41.03 ▼4.59 |
Custom Option(coppi) /wp-admin/options-general.php?page=coppi | 783 | 2.04 | 37.80 | 24.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 32× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/add-option-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/edit-category-form.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/list-option-single-row.php on line 3
- > PHP Notice
Trying to get property 'Info' of non-object in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/information.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/add-category-form.php:5
- > PHP Notice
Undefined variable: option in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/list-option-single-row.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Coppi_Model_Abstract_Table' not found in wp-content/plugins/custom-options-plus-post-in/model/model-custom-option.php:5
- > PHP Fatal error
Uncaught Error: Class 'Coppi_Manager_Abstract_Controller' not found in wp-content/plugins/custom-options-plus-post-in/manager/controller-custom-option.php:5
- > PHP Notice
Undefined variable: coppi in wp-content/plugins/custom-options-plus-post-in/manager/view/upgrade-announce.php on line 5
- > PHP Notice
Undefined variable: coppi in wp-content/plugins/custom-options-plus-post-in/manager/view/elements/information.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Settings Interface), #2 (Created Lists Interface), #3 (Memo), #4 (Usage Example for Post), #5 (Usage Example for Template), #6 (Display Example)
custom-options-plus-post-in/custom-options-plus-post-in.php 92% from 13 tests
The main PHP file in "CUSTOM OPTIONS PLUS POST IN" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,507 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,548 | 22 | 2,314 |
PO File | 1 | 49 | 60 | 114 |
CSS | 1 | 8 | 0 | 77 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.26 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 20 | 100.00% |
Methods | 134 | |
▷ Static methods | 2 | 1.49% |
▷ Public methods | 88 | 65.67% |
▷ Protected methods | 13 | 9.70% |
▷ Private methods | 33 | 24.63% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 62.42KB | 22.06KB | ▼ 64.66% |
screenshot-1.png | 19.22KB | 8.88KB | ▼ 53.81% |
screenshot-3.png | 8.12KB | 3.91KB | ▼ 51.84% |
screenshot-2.png | 20.70KB | 9.58KB | ▼ 53.72% |
screenshot-4.png | 12.87KB | 5.85KB | ▼ 54.49% |