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.16MB] [CPU: ▼0.58ms] Passed 4 tests
A check of server-side resources used by About our services
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.37 ▲3.17 |
Dashboard /wp-admin | 3.46 ▲0.15 | 50.23 ▼4.20 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 55.02 ▲3.51 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 87.31 ▼4.81 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.41 ▲5.43 |
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos | 3.50 | 38.00 |
Add New Service /wp-admin/post-new.php?post_type=thaos | 3.52 | 60.40 |
All Services /wp-admin/edit.php?post_type=thaos | 3.45 | 41.49 |
TH Service options /wp-admin/options-general.php?page=thaos | 3.35 | 35.16 |
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help | 3.35 | 32.09 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
thaos_plugin_version |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by About our services
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 14.37 ▲0.20 | 2.09 ▲0.27 | 42.81 ▲0.67 |
Dashboard /wp-admin | 2,258 ▲78 | 5.82 ▲0.15 | 91.25 ▲0.68 | 39.12 ▼4.38 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.34 ▲0.31 | 41.04 ▲1.85 | 36.48 ▼7.41 |
Add New Post /wp-admin/post-new.php | 1,587 ▲52 | 18.09 ▼0.08 | 638.06 ▼9.36 | 50.08 ▼14.40 |
Media Library /wp-admin/upload.php | 1,458 ▲64 | 4.30 ▲0.10 | 96.20 ▼11.79 | 41.49 ▼4.56 |
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos | 1,344 | 2.08 | 32.95 | 32.94 |
Add New Service /wp-admin/post-new.php?post_type=thaos | 2,428 | 7.76 | 183.67 | 74.35 |
All Services /wp-admin/edit.php?post_type=thaos | 1,262 | 3.37 | 62.63 | 26.67 |
TH Service options /wp-admin/options-general.php?page=thaos | 1,128 | 2.65 | 45.47 | 34.28 |
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help | 1,011 | 1.99 | 31.12 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-types.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-settings.php:81
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-admin.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-our-services/inc/thaos-shortcode.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-user.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/inc/thaos-post-metabox.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-our-services/th-about-our-services.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: site, about, aboutusservice, offer, service...
about-our-services/th-about-our-services.php 85% from 13 tests
The main PHP script in "About our services" version 1.5.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("about-our-services.php" instead of "th-about-our-services.php")
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 detected1,100 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 149 | 402 | 687 |
PO File | 1 | 84 | 88 | 220 |
CSS | 2 | 16 | 4 | 80 |
Markdown | 1 | 39 | 0 | 78 |
JavaScript | 4 | 5 | 3 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected