Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/royal-popup-notice/royal-popup-notice.php+101
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.81MB] [CPU: ▼186.94ms] Passed 4 tests
Server-side resources used by Royal PopUp Notice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼0.90 | 5.25 ▼21.99 |
Dashboard /wp-admin | 1.83 ▼1.22 | 5.86 ▼26.94 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 5.13 ▼40.35 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 5.37 ▼649.81 |
Media Library /wp-admin/upload.php | 1.83 ▼1.17 | 5.10 ▼30.64 |
Royal PopUp Notice /wp-admin/options-general.php?page=royal_popup_notice | 1.84 | 5.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
royal_popup_notice_plugin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Royal PopUp Notice
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,735 ▲139 | 16.23 ▲0.20 | 11.11 ▲1.22 | 46.60 ▼0.03 |
Dashboard /wp-admin | 2,978 ▲44 | 5.93 ▼0.06 | 138.83 ▲5.94 | 110.77 ▲2.18 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 72.66 ▼2.15 | 87.95 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,673 ▲173 | 19.09 ▲0.32 | 373.10 ▼7.94 | 107.04 ▼5.02 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.02 | 160.44 ▲9.47 | 119.83 ▼4.85 |
Royal PopUp Notice /wp-admin/options-general.php?page=royal_popup_notice | 1,430 | 2.37 | 68.57 | 83.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/royal-popup-notice/royal-popup-notice.php+101
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=royal_popup_notice
- > Deprecated in wp-content/plugins/royal-popup-notice/royal-popup-notice.php+101
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- > GET request to /wp-admin/options-general.php?page=royal_popup_notice
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=royal_popup_notice
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=royal_popup_notice
- > Notice in wp-content/plugins/royal-popup-notice/royal-popup-notice.php+200
Trying to access array offset on value of type bool
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/royal-popup-notice/royal-popup-notice.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=royal_popup_notice
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'value')" "TypeError: Cannot read properties of undefined (reading 'value')\n at $._farbtastic.fb.linkTo (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:73:29)\n at new $._farbtastic (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:280:8)\n at Function.$.farbtastic (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:24:58)\n at s.fn.init.$.fn.farbtastic (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:18:5)\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=royal_popup_notice:167:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=royal_popup_notice
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 72:28 Uncaught TypeError: Cannot read properties of undefined (reading 'value')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #2 in royal-popup-notice/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== royal-popup-notice ===
)
royal-popup-notice/royal-popup-notice.php Passed 13 tests
Analyzing the main PHP file in "Royal PopUp Notice" version 1.0.1
121 characters long description:
Display a PopUp Notice that you can easily link to any page like feedback, twitter, facebook etc & customise as you like.
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
Everything looks great! No dangerous files found in this plugin287 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 129 | 47 | 287 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected