Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼275.48ms] Passed 4 tests
This is a short check of server-side resources used by Shortcode Locator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 33.34 ▲8.80 |
Dashboard /wp-admin | 3.13 ▲0.07 | 42.66 ▼7.24 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 45.34 ▲4.55 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 91.96 ▼1,091.60 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 30.31 ▼7.64 |
Shortcode Locator /wp-admin/options-general.php?page=shortcode_locator_settings | 3.04 | 27.99 |
Shortcode Locator /wp-admin/tools.php?page=shortcode_locator | 3.05 | 27.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Shortcode Locator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲77 | 15.89 ▲0.41 | 8.09 ▼0.32 | 50.63 ▲4.17 |
Dashboard /wp-admin | 2,937 ▲84 | 5.91 ▲0.06 | 129.75 ▲0.17 | 101.94 ▲0.68 |
Posts /wp-admin/edit.php | 2,716 ▲10 | 2.69 ▼0.00 | 60.21 ▼6.95 | 91.09 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,859 ▲206 | 18.80 ▲0.20 | 367.89 ▼13.62 | 108.20 ▲8.28 |
Media Library /wp-admin/upload.php | 1,779 ▲10 | 5.01 ▼0.02 | 175.57 ▲1.46 | 105.37 ▼8.74 |
Shortcode Locator /wp-admin/options-general.php?page=shortcode_locator_settings | 1,006 | 2.09 | 53.18 | 63.16 |
Shortcode Locator /wp-admin/tools.php?page=shortcode_locator | 1,314 | 2.09 | 53.18 | 66.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/shortcode-locator/includes/class-shortcode-locator-table.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shortcode-locator/includes/class-shortcode-locator-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/shortcode-locator/includes/class-shortcode-locator-table.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shortcode-locator/includes/class-shortcode-locator-table.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/shortcode-locator/includes/class-shortcode-locator-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/shortcode-locator/includes/class-shortcode-locator-table.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: post types, find content, shortcode
shortcode-locator/shortcode-locator.php Passed 13 tests
Analyzing the main PHP file in "Shortcode Locator" version 1.1.1
56 characters long description:
Quickly locate what and where shortcodes are being used
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
No dangerous file extensions were detected295 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 222 | 446 | 295 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 5 | 17.24% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin