Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲0.96ms] Passed 4 tests
An overview of server-side resources used by Alley Business Toolkit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 37.44 ▼2.96 |
Dashboard /wp-admin | 3.90 ▲0.60 | 46.57 ▼1.17 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 53.90 ▲6.91 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 99.11 ▲11.14 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 36.33 ▲1.07 |
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius | 4.03 | 36.65 |
Server storage [IO: ▲7.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 230 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
widget_theysaidso_widget |
fs_debug_mode |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Alley Business Toolkit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.26 ▼1.15 | 1.71 ▲0.03 | 30.99 ▼14.09 |
Dashboard /wp-admin | 2,271 ▲83 | 5.84 ▼0.01 | 96.64 ▼3.99 | 84.53 ▲42.27 |
Posts /wp-admin/edit.php | 2,160 ▲71 | 2.14 ▲0.15 | 38.30 ▲1.95 | 35.82 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,568 ▲36 | 23.08 ▼0.17 | 679.08 ▲1.11 | 50.86 ▼2.75 |
Media Library /wp-admin/upload.php | 1,456 ▲74 | 4.14 ▼0.10 | 96.57 ▲0.39 | 88.39 ▲45.72 |
Freemius Debug [v.2.5.9] /wp-admin/admin.php?page=freemius | 1,077 | 1.71 | 23.42 | 27.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/alley-business-toolkit/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/alley-business-toolkit/admin/partials/alley-business-toolkit-admin-display.php
- > /wp-content/plugins/alley-business-toolkit/public/partials/alley-business-toolkit-public-display.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/alley-business-toolkit/admin/partials/dashboard.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/alley-business-toolkit/admin/abt-widgets.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alley-business-toolkit/admin/partials/admin-notice.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/alley-business-toolkit/public/social-media.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function abt_fs() in wp-content/plugins/alley-business-toolkit/admin/functions.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alley-business-toolkit/admin/customizer/customizer.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alley-business-toolkit/admin/class-custom-posttype.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alley-business-toolkit/admin/metabox/save-metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alley-business-toolkit/admin/metabox/add-metabox.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: business, promtions, services
alley-business-toolkit/alley-business-toolkit.php Passed 13 tests
The main PHP script in "Alley Business Toolkit" version 2.0.6 is automatically included on every request by WordPress
82 characters long description:
Alley Business Tootkit help you to create post types that needed for any business.
Code Analysis 97% from 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
There were no executable files found in this plugin34,897 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 8,267 | 17,834 | 34,097 |
CSS | 16 | 9 | 9 | 351 |
JavaScript | 5 | 41 | 88 | 220 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 15 | 0 | 0 | 15 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 76.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,311 | |
▷ Static methods | 201 | 15.33% |
▷ Public methods | 915 | 69.79% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 379 | 28.91% |
Functions | 120 | |
▷ Named functions | 120 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.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
5 PNG files occupy 0.18MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/logo.png | 0.37KB | 0.38KB | 0.00% |
includes/demo-data/pro/3/screenshot.png | 112.34KB | 119.01KB | 0.00% |
admin/images/abt_dashboad_image.png | 51.65KB | 54.33KB | 0.00% |