Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.89MB] [CPU: ▼37.72ms] Passed 4 tests
Server-side resources used by Caret Country Access Limit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 48.29 ▲5.68 |
Dashboard /wp-admin | 3.06 ▼0.25 | 24.03 ▼22.66 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 25.89 ▼25.75 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 23.22 ▼91.04 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 25.71 ▼11.43 |
CaretCountryAccessLimitの設定 /wp-admin/options-general.php?page=CaretCountryAccessLimit | 3.06 | 26.43 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Caret Country Access Limit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.12 ▼1.17 | 4.68 ▲2.73 | 47.68 ▼4.45 |
Dashboard /wp-admin | 2,210 ▲24 | 4.85 ▼0.09 | 113.56 ▼7.71 | 43.64 ▲3.99 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.00 | 43.27 ▲4.78 | 40.03 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.12 ▲0.19 | 672.98 ▼1.44 | 63.13 ▼6.83 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.32 ▲0.12 | 108.14 ▼2.54 | 47.72 ▼0.06 |
CaretCountryAccessLimitの設定 /wp-admin/options-general.php?page=CaretCountryAccessLimit | 1,044 | 2.04 | 28.13 | 109.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > 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.
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=CaretCountryAccessLimit
- > 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.
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=CaretCountryAccessLimit
- > Notice in wp-content/plugins/caret-country-access-limit/setup.php+94
Undefined index: error
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=CaretCountryAccessLimit
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=CaretCountryAccessLimit
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 20 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=CaretCountryAccessLimit
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=CaretCountryAccessLimit
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/caret-country-access-limit/batch.php
- > /wp-content/plugins/caret-country-access-limit/setup.php
- 47× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined index: COUNTRY_LIMIT_STATUS in wp-content/plugins/caret-country-access-limit/setup.php on line 41
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/caret-country-access-limit/setup.php on line 47
- > PHP Notice
Undefined index: COUNTRY_LIMIT_LIST in wp-content/plugins/caret-country-access-limit/setup.php on line 61
- > PHP Notice
Undefined variable: argv in wp-content/plugins/caret-country-access-limit/batch.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/caret-country-access-limit/setup.php on line 54
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/caret-country-access-limit/setup.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/caret-country-access-limit/setup.php on line 73
- > PHP Notice
Undefined index: COUNTRY_LIMIT_EXTRA in wp-content/plugins/caret-country-access-limit/setup.php on line 80
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/caret-country-access-limit/setup.php on line 88
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/caret-country-access-limit/setup.php on line 86
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Screenshot #1 (設定画面) image required
- Plugin Name: You should set the name of your plugin on the first line (
=== caret-country-access-limit ===
)
caret-country-access-limit/CaretCountryAccessLimit.php 85% from 13 tests
The principal PHP file in "Caret Country Access Limit" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("caret-country-access-limit.php" instead of "CaretCountryAccessLimit.php")
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 detected541 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 116 | 39 | 516 |
JavaScript | 1 | 4 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 100.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
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 67.67KB | 29.24KB | ▼ 56.80% |