Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/romancartwppluginstd/index.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; RomanCartWPPlugin has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼51.73ms] Passed 4 tests
This is a short check of server-side resources used by RomanCartWPPluginStd
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.35 ▼34.72 |
Dashboard /wp-admin | 2.12 ▼1.19 | 5.67 ▼40.28 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.59 ▼41.36 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.39 ▼90.57 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.14 ▼29.30 |
RomanCart /wp-admin/options-general.php?page=romancartwppluginstd/settings.php | 2.12 | 6.38 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by RomanCartWPPluginStd
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.24 ▼1.06 | 1.93 ▲0.16 | 38.23 ▼8.63 |
Dashboard /wp-admin | 2,213 ▲25 | 5.89 ▲0.86 | 96.00 ▼9.88 | 42.00 ▼3.00 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.97 ▼0.03 | 40.14 ▼0.14 | 36.75 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,517 ▼5 | 17.51 ▼5.77 | 656.58 ▼6.90 | 49.68 ▼6.22 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▲0.00 | 94.73 ▼4.79 | 42.89 ▼5.03 |
RomanCart /wp-admin/options-general.php?page=romancartwppluginstd/settings.php | 1,143 | 2.06 | 22.49 | 43.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/romancartwppluginstd/index.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; RomanCartWPPlugin has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > Deprecated in wp-content/plugins/romancartwppluginstd/index.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; RomanCartWPPlugin has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > Notice in wp-content/plugins/romancartwppluginstd/index.php+240
Undefined variable: romancartwpplugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > Notice in wp-content/plugins/romancartwppluginstd/settings.php+61
Undefined property: RomanCartWPPlugin::$tag
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > Notice in wp-content/plugins/romancartwppluginstd/settings.php+36
Undefined index: stage
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > Notice in wp-content/plugins/romancartwppluginstd/settings.php+59
Undefined property: RomanCartWPPlugin::$settings_page
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=romancartwppluginstd/settings.php
- > Notice in wp-content/plugins/romancartwppluginstd/settings.php+203
Undefined variable: pro_feature_text_style
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 fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: romancartwpplugin in wp-content/plugins/romancartwppluginstd/settings.php on line 24
- > PHP Fatal error
Uncaught Error: Call to a member function get_storeid() on null in wp-content/plugins/romancartwppluginstd/settings.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/romancartwppluginstd/index.php:45
- > PHP Notice
Undefined variable: romancartwpplugin in wp-content/plugins/romancartwppluginstd/index.php on line 240
- > PHP Notice
Undefined variable: romancartwpplugin in wp-content/plugins/romancartwppluginstd/settings.php on line 23
- > PHP Notice
Trying to get property 'tag' of non-object in wp-content/plugins/romancartwppluginstd/settings.php on line 23
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (No Screen shots available as yet.) image required
romancartwppluginstd/index.php 92% from 13 tests
"RomanCartWPPluginStd" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("romancartwppluginstd.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected363 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 54 | 363 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin