Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.14ms] Passed 4 tests
This is a short check of server-side resources used by Tattoo Shop Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.05 ▼6.06 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.33 ▼2.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.84 ▼2.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.29 ▼21.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.02 ▲2.09 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Tattoo Shop Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.39 | 1.61 ▼0.16 | 43.29 ▲3.02 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲1.03 | 108.80 ▼2.83 | 41.13 ▲1.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 39.74 ▼1.30 | 36.83 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.29 ▲0.08 | 681.16 ▲65.04 | 70.87 ▲10.52 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.01 | 95.93 ▼4.13 | 39.48 ▼4.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/employees.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/inks.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/suppliers.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/luckydraw.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/clients.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/revenues.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/appointments.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tattoo-shop-manager/inc/needles.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tattoo-shop-manager/inc/shortcodes_widgets.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
7 plugin tags: piercing, manager, appointments, stock, clients...
tattoo-shop-manager/tattoo-shop-manager.php Passed 13 tests
This is the main PHP file of "Tattoo Shop Manager" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
A simple yet powerful Tattoo Shop Manager.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,809 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 25 | 202 | 6,861 |
PHP | 11 | 277 | 163 | 2,227 |
PO File | 1 | 291 | 315 | 628 |
JavaScript | 2 | 15 | 2 | 93 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin