Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼293.84ms] Passed 4 tests
Server-side resources used by Our Services Showcase
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 57.33 ▲7.94 |
Dashboard /wp-admin | 3.65 ▲0.24 | 37.93 ▲6.17 |
Posts /wp-admin/edit.php | 3.86 ▲0.22 | 43.40 ▲8.00 |
Add New Post /wp-admin/post-new.php | 7.12 ▲0.15 | 96.56 ▼1,190.48 |
Media Library /wp-admin/upload.php | 3.53 ▲0.23 | 28.90 ▲1.00 |
Settings /wp-admin/edit.php?post_type=service&page=smartcat_services_settings | 3.55 | 30.76 |
Groups /wp-admin/edit-tags.php?taxonomy=service_position&post_type=service | 3.53 | 33.37 |
Re-Order Services /wp-admin/edit.php?post_type=service&page=smartcat_services_reorder | 3.52 | 31.54 |
Add New /wp-admin/post-new.php?post_type=service | 3.90 | 56.58 |
All Services /wp-admin/edit.php?post_type=service | 3.61 | 34.87 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 1 new option
New WordPress options |
---|
smartcat_services_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Our Services Showcase
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,982 ▲228 | 16.71 ▲1.03 | 11.21 ▲5.12 | 2.06 ▼0.88 |
Dashboard /wp-admin | 2,945 ▲91 | 6.19 ▲0.05 | 118.88 ▼12.42 | 174.99 ▲20.08 |
Posts /wp-admin/edit.php | 2,748 ▲54 | 3.27 ▲0.03 | 64.35 ▲0.28 | 143.75 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,672 ▼39 | 21.66 ▲0.90 | 398.80 ▼40.84 | 169.27 ▲6.04 |
Media Library /wp-admin/upload.php | 1,754 ▲56 | 5.58 ▲0.05 | 124.20 ▼19.63 | 205.77 ▲6.60 |
Settings /wp-admin/edit.php?post_type=service&page=smartcat_services_settings | 1,867 | 2.75 | 57.22 | 154.62 |
Groups /wp-admin/edit-tags.php?taxonomy=service_position&post_type=service | 1,672 | 2.79 | 57.98 | 110.64 |
Re-Order Services /wp-admin/edit.php?post_type=service&page=smartcat_services_reorder | 1,320 | 2.77 | 54.62 | 126.29 |
Add New /wp-admin/post-new.php?post_type=service | 5,661 | 10.64 | 215.81 | 294.17 |
All Services /wp-admin/edit.php?post_type=service | 1,424 | 3.20 | 59.42 | 111.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% 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 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 take a closer look at the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/our-services-showcase/admin/reorder.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/our-services-showcase/inc/template/icons.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/our-services-showcase/admin/setting.php:90
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/our-services-showcase/inc/template/slide.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/our-services-showcase/inc/template/quad.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-services-showcase/inc/class/class.smartcat-services.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/our-services-showcase/inc/template/zoomOut.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/our-services-showcase/admin/setting.php:90
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/our-services-showcase/inc/template/widget.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/our-services-showcase/inc/template/columns.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=service&page=smartcat_services_reorder
- > Network (severe)
var/www/wordpress/wp-content/plugins/our-services-showcase/img/check.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=service&page=smartcat_services_reorder
- > Network (severe)
var/www/wordpress/wp-content/plugins/our-services-showcase/img/spinner.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Template), #2 (Template), #3 (Template), #4 (Template)
- Tags: There are too many tags (15 tag instead of maximum 10)
our-services-showcase/sc_our_services.php 85% from 13 tests
"Our Services Showcase" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("our-services-showcase.php" instead of "sc_our_services.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,630 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 240 | 91 | 1,522 |
JavaScript | 4 | 265 | 70 | 1,241 |
PHP | 12 | 299 | 131 | 1,200 |
SVG | 1 | 0 | 0 | 565 |
PO File | 1 | 43 | 43 | 102 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/twitter.png | 4.48KB | 1.47KB | ▼ 67.18% |
inc/img/google.png | 4.52KB | 1.44KB | ▼ 68.17% |
inc/img/more.png | 3.45KB | 0.63KB | ▼ 81.87% |
inc/script/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
inc/img/check.png | 0.35KB | 0.31KB | ▼ 9.86% |