Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼283.48ms] Passed 4 tests
Server-side resources used by About our services
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.60 | 70.89 ▲21.50 |
Dashboard /wp-admin | 3.57 ▲0.16 | 36.55 ▲2.80 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 40.39 ▲3.43 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.06 | 93.99 ▼1,140.12 |
Media Library /wp-admin/upload.php | 3.45 ▲0.16 | 27.10 ▼0.04 |
All Services /wp-admin/edit.php?post_type=thaos | 3.59 | 31.75 |
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos | 3.45 | 32.04 |
TH Service options /wp-admin/options-general.php?page=thaos | 3.42 | 38.17 |
Add New Service /wp-admin/post-new.php?post_type=thaos | 3.80 | 50.97 |
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help | 3.42 | 25.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
thaos_plugin_version |
Browser metrics Passed 4 tests
A check of browser resources used by About our services
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,873 ▲119 | 16.20 ▲0.90 | 8.13 ▲2.41 | 2.67 ▼0.22 |
Dashboard /wp-admin | 2,960 ▲102 | 6.97 ▲0.78 | 119.51 ▼28.20 | 236.45 ▲34.06 |
Posts /wp-admin/edit.php | 2,728 ▲37 | 3.23 ▼0.01 | 67.58 ▲1.03 | 157.66 ▲11.18 |
Add New Post /wp-admin/post-new.php | 1,813 ▲152 | 18.14 ▼2.64 | 392.20 ▼5.54 | 184.57 ▲34.33 |
Media Library /wp-admin/upload.php | 1,762 ▲64 | 6.04 ▲0.59 | 125.01 ▼24.25 | 235.25 ▲4.78 |
All Services /wp-admin/edit.php?post_type=thaos | 1,648 | 5.10 | 91.15 | 114.39 |
Service Categories /wp-admin/edit-tags.php?taxonomy=thaoss_categories&post_type=thaos | 1,703 | 3.34 | 58.39 | 114.93 |
TH Service options /wp-admin/options-general.php?page=thaos | 1,529 | 3.52 | 77.13 | 145.47 |
Add New Service /wp-admin/post-new.php?post_type=thaos | 3,152 | 10.00 | 210.94 | 224.59 |
Help /wp-admin/edit.php?post_type=thaos&page=thaos_help | 1,327 | 3.12 | 57.78 | 133.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > 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-post-metabox.php:23
- > 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/th-about-our-services.php:37
- > 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
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
7 plugin tags: shortcode, post, service, site, aboutusservice...
about-our-services/th-about-our-services.php 85% from 13 tests
The main PHP script in "About our services" version 1.4.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,022 lines of code in 16 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 |
JavaScript | 4 | 5 | 3 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin