Benchmarks
Plugin footprint 83% 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.04MB] [CPU: ▼6.00ms] Passed 4 tests
An overview of server-side resources used by Service
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.33 ▼5.26 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.69 ▼1.75 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.13 ▼10.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.26 ▼6.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.84 ▲0.92 |
Server storage [IO: ▲0.24MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_service_orders |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
service_sms_api_key |
service_imei_api_key_status |
service_imei_api_key |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Service
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.29 ▼1.09 | 1.69 ▼0.04 | 40.75 ▼2.11 |
Dashboard /wp-admin | 2,240 ▲52 | 5.89 ▼0.06 | 103.60 ▼5.28 | 37.82 ▼9.02 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.99 ▲0.02 | 33.94 ▼6.30 | 32.77 ▼4.25 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 17.43 ▼0.09 | 676.40 ▼3.84 | 64.01 ▲4.72 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.19 ▼0.01 | 97.82 ▼5.76 | 42.68 ▼3.08 |
Statistics /wp-admin/service.php?page=service-statistics | 26 | 0.44 | 0.08 | 14.58 |
Orders /wp-admin/service.php?page=service-orders | 26 | 0.44 | 0.14 | 5.25 |
Settings /wp-admin/service.php?page=service-settings | 26 | 0.44 | 0.06 | 5.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_rest_url() in wp-content/plugins/service/pages/statistics.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/service/includes/function.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/service/pages/settings.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/service/includes/api.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/service/pages/orders.php:54
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/service.php?page=service-statistics
- > Network (severe)
wp-admin/service.php?page=service-statistics - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/service.php?page=service-orders
- > Network (severe)
wp-admin/service.php?page=service-orders - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/service.php?page=service-settings
- > Network (severe)
wp-admin/service.php?page=service-settings - 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
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
2 plugin tags: service, crm
service/service.php 92% from 13 tests
This is the main PHP file of "Service" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.9.2")
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
Good job! No executable or dangerous file extensions detected1,334 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 126 | 14 | 780 |
JavaScript | 5 | 10 | 43 | 388 |
JSON | 2 | 4 | 0 | 165 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 30 | 100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/sort_both.png | 0.20KB | 0.29KB | 0.00% |