Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.44ms] Passed 4 tests
Server-side resources used by Service Showcase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.28 ▼2.78 |
Dashboard /wp-admin | 3.45 ▲0.11 | 47.55 ▼14.71 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 46.48 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 89.52 ▼1.55 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 33.75 ▲2.86 |
All Service Showcase /wp-admin/edit.php?post_type=service_showcase | 3.42 | 35.28 |
Add New /wp-admin/post-new.php?post_type=service_showcase | 3.95 | 41.65 |
Server storage [IO: ▲4.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics 75% from 4 tests
An overview of browser requirements for Service Showcase
Having an awesome user experience is important, so please improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 26,288 on /wp-admin/post-new.php?post_type=service_showcase)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲52 | 14.27 ▼0.44 | 1.75 ▲0.11 | 42.06 ▼2.50 |
Dashboard /wp-admin | 2,219 ▲39 | 5.62 ▼0.05 | 84.77 ▼4.88 | 36.99 ▼2.08 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 1.97 ▼0.04 | 37.17 ▲2.52 | 35.04 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.24 ▲0.21 | 609.13 ▼47.64 | 49.28 ▼0.65 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.16 ▼0.16 | 95.33 ▼3.92 | 40.71 ▼3.88 |
All Service Showcase /wp-admin/edit.php?post_type=service_showcase | 1,112 | 1.93 | 30.47 | 29.31 |
Add New /wp-admin/post-new.php?post_type=service_showcase | 26,288 | 8.63 | 487.92 | 150.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=service_showcase
- > Network (severe)
wp-content/plugins/service-showcase/assets/images/style1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: service page, icon box, wordpress service box, service plugin, service box...
service-showcase/service-showcase.php 92% from 13 tests
The principal PHP file in "Service Showcase" v. 2.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin34,889 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 1,231 | 48 | 14,810 |
SVG | 3 | 0 | 0 | 9,546 |
JavaScript | 9 | 893 | 259 | 6,594 |
PHP | 18 | 281 | 63 | 3,715 |
PO File | 1 | 100 | 172 | 224 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 116)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 9.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 116.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 17 | |
▷ Static methods | 15 | 88.24% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/style5.png | 28.62KB | 13.00KB | ▼ 54.58% |
assets/images/style4.png | 30.46KB | 13.56KB | ▼ 55.49% |
assets/images/style1.PNG | 30.15KB | 13.26KB | ▼ 56.02% |
assets/images/logo.png | 107.50KB | 34.96KB | ▼ 67.48% |
assets/images/style6.png | 33.71KB | 14.56KB | ▼ 56.80% |