Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼9.45ms] Passed 4 tests
A check of server-side resources used by WPX Shortcodes Manager Light
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 44.02 ▲1.02 |
Dashboard /wp-admin | 3.84 ▲0.49 | 51.41 ▼10.98 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 47.61 ▼4.00 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 83.70 ▼23.84 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 39.39 ▲5.63 |
Manage /wp-admin/admin.php?page=wpxsm_menu | 3.96 | 43.53 |
Settings /wp-admin/admin.php?page=wpxshortcodesmanagerlight_1 | 3.91 | 35.52 |
Server storage [IO: ▲15.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 135 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wpx_shortcodes_manager_light_slug |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WPX Shortcodes Manager Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.82 ▲0.52 | 1.81 ▲0.06 | 44.42 ▲1.30 |
Dashboard /wp-admin | 2,233 ▲48 | 4.84 ▼0.00 | 111.70 ▲7.78 | 42.39 ▼3.99 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.01 ▲0.01 | 34.22 ▼6.24 | 33.81 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.42 ▲0.30 | 685.96 ▲64.10 | 65.20 ▲12.29 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.20 ▼0.07 | 103.88 ▲4.73 | 45.60 ▲1.00 |
Manage /wp-admin/admin.php?page=wpxsm_menu | 1,290 | 1.70 | 30.74 | 38.41 |
Settings /wp-admin/admin.php?page=wpxshortcodesmanagerlight_1 | 839 | 2.06 | 23.51 | 40.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- wpx_shortcodes_manager_light_slug
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Foundation\\Plugin' not found in wp-content/plugins/wpx-shortcodes-manager-light/bootstrap/plugin.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-shortcodes-manager-light/vendor/wpbones/pure-css-switch/src/Html/HtmlTagSwitchButton.php:22
- > PHP Fatal error
Uncaught Error: Interface 'WPXShortcodesManagerLight\\WPBones\\Contracts\\Container\\Container' not found in wp-content/plugins/wpx-shortcodes-manager-light/vendor/wpbones/wpbones/src/Container/Container.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-shortcodes-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagFieldSet.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Foundation\\WordPressAjaxServiceProvider' not found in wp-content/plugins/wpx-shortcodes-manager-light/plugin/Ajax/WPXShortcodesManagerLightAjax.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\Http\\Controllers\\Controller' not found in wp-content/plugins/wpx-shortcodes-manager-light/plugin/Http/Controllers/Dashboard/DashboardController.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Html\\HtmlTagInput' not found in wp-content/plugins/wpx-shortcodes-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagCheckbox.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\Models\\Shortcode' not found in wp-content/plugins/wpx-shortcodes-manager-light/plugin/activation.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-shortcodes-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagDatetime.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXShortcodesManagerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-shortcodes-manager-light/vendor/wpbones/wpbones/src/Html/HtmlTagInput.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
2 plugin tags: editor, shortcodes
wpx-shortcodes-manager-light/index.php 77% from 13 tests
The principal PHP file in "WPX Shortcodes Manager Light" v. 2.3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpx-shortcodes-manager-light.php" instead of "index.php")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("localization")
- Domain Path: Please prefix the domain path with a forward slash character ("/localization")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6,927 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 1,365 | 2,385 | 5,045 |
CSS | 11 | 11 | 12 | 495 |
Markdown | 7 | 165 | 0 | 387 |
LESS | 5 | 56 | 18 | 360 |
JSON | 5 | 0 | 0 | 272 |
PO File | 2 | 94 | 108 | 246 |
JavaScript | 3 | 25 | 25 | 122 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 10 | 20.83% |
▷ Concrete classes | 38 | 79.17% |
▷ Final classes | 4 | 10.53% |
Methods | 297 | |
▷ Static methods | 60 | 20.20% |
▷ Public methods | 233 | 78.45% |
▷ Protected methods | 52 | 17.51% |
▷ Private methods | 12 | 4.04% |
Functions | 19 | |
▷ Named functions | 13 | 68.42% |
▷ Anonymous functions | 6 | 31.58% |
Constants | 19 | |
▷ Global constants | 2 | 10.53% |
▷ Class constants | 17 | 89.47% |
▷ Public constants | 17 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 1.22MB with 0.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 114.24KB | 27.48KB | ▼ 75.94% |
assets/screenshot-1.png | 92.22KB | 24.36KB | ▼ 73.59% |
assets/screenshot-3.png | 302.30KB | 82.77KB | ▼ 72.62% |
assets/screenshot-4.png | 225.98KB | 60.33KB | ▼ 73.30% |
assets/screenshot-5.png | 259.35KB | 70.79KB | ▼ 72.70% |