Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.21ms] Passed 4 tests
A check of server-side resources used by Dealers And Branches
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.04 ▼4.06 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.97 ▼2.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.57 ▼0.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.39 ▲5.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.67 ▲1.82 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_dealers_and_branches_vars |
wp_dealers_and_branches |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Dealers And Branches
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 13.47 ▼1.12 | 4.04 ▲2.27 | 39.25 ▼10.14 |
Dashboard /wp-admin | 2,220 ▲32 | 4.93 ▼0.93 | 97.83 ▼17.57 | 82.83 ▲38.32 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.02 | 38.60 ▲0.65 | 36.27 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,524 ▼10 | 23.40 ▲0.18 | 642.97 ▼40.77 | 50.30 ▼2.49 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.14 ▼0.10 | 98.41 ▲0.03 | 72.90 ▲31.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_dealers_and_branches
- wp_dealers_and_branches_vars
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/dealers-and-branches/dnb_panel.php:4
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
dealers-and-branches/dealers-and-branches.php Passed 13 tests
The primary PHP file in "Dealers And Branches" version 2018.1.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Dealing with dealers and branches list. CRUD etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,213 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 979 | 30 | 5,221 |
JavaScript | 4 | 341 | 222 | 1,175 |
PHP | 3 | 228 | 79 | 817 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 3 | 60.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/screenshot-1.PNG | 141.17KB | 71.72KB | ▼ 49.20% |
css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |