Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.49ms] Passed 4 tests
This is a short check of server-side resources used by Scale Lite Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.28 ▼6.09 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.70 ▼2.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.43 ▼3.48 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.73 ▼27.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.64 ▼4.61 |
Scale Lite Tools /wp-admin/options-general.php?page=scale-lite-tools-options | 3.21 | 28.19 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Scale Lite Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.37 ▼0.02 | 1.81 ▲0.23 | 42.14 ▲1.23 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▲0.06 | 99.07 ▲2.55 | 44.10 ▲3.91 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.02 ▲0.00 | 35.27 ▼3.67 | 37.04 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.31 ▲0.28 | 626.82 ▼37.30 | 49.28 ▼9.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.01 | 99.03 ▼17.46 | 40.75 ▼6.65 |
Scale Lite Tools /wp-admin/options-general.php?page=scale-lite-tools-options | 820 | 2.03 | 25.25 | 39.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 fix the following items
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scale-lite-tools/bootstrap.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/admin-menu.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function Scale_Lite\\add_action() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/class-slt-gmap-meta-fields.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function Scale_Lite\\is_admin() in wp-content/plugins/scale-lite-tools/inc/sl-main-dashboard/main.php:313
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/sl-debug/debug.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/maps-cpt.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/scale-lite-tools/inc/shortcode-tools/shortcodes.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function Scale_Lite\\add_action() in wp-content/plugins/scale-lite-tools/inc/sl-html-block/Class_Html_Block_Meta_Fields.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scale-lite-tools/inc/helpers/sl-reveal-category-id.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function Scale_Lite\\is_admin() in wp-content/plugins/scale-lite-tools/inc/sl-google-maps/class-sl-maps-sub-menu.php:100
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: google maps, html block
scale-lite-tools/scale-lite-tools.php 92% from 13 tests
The entry point to "Scale Lite Tools" version 1.0.9.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
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 plugin2,756 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 214 | 422 | 1,556 |
JavaScript | 7 | 75 | 97 | 804 |
CSS | 5 | 31 | 18 | 332 |
SVG | 1 | 0 | 1 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin