Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/mylco/include/myLCOoptions.php+137
Declaration of MyLCOpr::get($url) should be compatible with MyLCOoptions::get()
Server metrics [RAM: ▼1.81MB] [CPU: ▼55.77ms] Passed 4 tests
A check of server-side resources used by myLCO
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 4.64 ▼44.78 |
Dashboard /wp-admin | 2.20 ▼1.11 | 6.52 ▼43.19 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 7.73 ▼39.48 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 5.60 ▼95.63 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.32 ▼30.62 |
Add New /wp-admin/link-add.php | 2.20 | 6.14 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 2.20 | 6.36 |
Edit /wp-admin/admin.php?page=myLCO_edit | 2.20 | 6.07 |
All Links /wp-admin/link-manager.php | 2.21 | 6.81 |
Dashboard /wp-admin/admin.php?page=mylco/myLCO.php | 2.20 | 5.61 |
Options /wp-admin/admin.php?page=myLCO_options | 2.20 | 7.44 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_links |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
_myLCO |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by myLCO
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲130 | 13.60 ▼0.80 | 1.64 ▼0.09 | 38.33 ▼6.16 |
Dashboard /wp-admin | 2,268 ▲77 | 5.84 ▲0.96 | 103.66 ▼4.53 | 41.29 ▼1.56 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.05 ▲0.03 | 39.60 ▲4.09 | 36.25 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,594 ▲57 | 18.47 ▼4.82 | 638.14 ▼64.60 | 55.65 ▲0.83 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.21 ▼0.02 | 95.35 ▼17.20 | 40.92 ▼4.59 |
Add New /wp-admin/link-add.php | 1,675 | 2.28 | 50.93 | 34.04 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,330 | 2.14 | 28.95 | 28.55 |
Edit /wp-admin/admin.php?page=myLCO_edit | 846 | 2.07 | 28.68 | 29.79 |
All Links /wp-admin/link-manager.php | 1,087 | 1.68 | 24.80 | 29.17 |
Dashboard /wp-admin/admin.php?page=mylco/myLCO.php | 846 | 2.07 | 24.52 | 24.10 |
Options /wp-admin/admin.php?page=myLCO_options | 887 | 1.72 | 26.16 | 24.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/mylco/include/myLCOoptions.php+137
Declaration of MyLCOpr::get($url) should be compatible with MyLCOoptions::get()
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_links
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=myLCO_options
- > Warning in wp-content/plugins/mylco/include/myLCOoptions.php+137
Declaration of MyLCOpr::get($url) should be compatible with MyLCOoptions::get()
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mylco/templates/page.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mylco/templates/row.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mylco/templates/edit.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mylco/templates/main.php:4
- > PHP Warning
Declaration of MyLCOpr::get($url) should be compatible with MyLCOoptions::get() in wp-content/plugins/mylco/include/myLCOoptions.php on line 137
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mylco/myLCO.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mylco/templates/form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mylco/templates/options.php:6
- > 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 Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: check, seo, backlinks, links, mylco
mylco/myLCO.php 85% from 13 tests
"myLCO" version 0.8.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mylco.php" instead of "myLCO.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,586 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 324 | 279 | 2,302 |
PO File | 2 | 110 | 240 | 272 |
Markdown | 1 | 7 | 0 | 12 |
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.43 |
Average class complexity | 30.27 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 152 | |
▷ Static methods | 1 | 0.66% |
▷ Public methods | 136 | 89.47% |
▷ Protected methods | 16 | 10.53% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 22 | 81.48% |
▷ Class constants | 5 | 18.52% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/stop.png | 0.68KB | 0.78KB | 0.00% |
icons/accept.png | 0.76KB | 0.81KB | 0.00% |
icons/link_error.png | 0.68KB | 0.70KB | 0.00% |
icons/page_error.png | 0.77KB | 0.98KB | 0.00% |
icons/error.png | 0.65KB | 0.68KB | 0.00% |