Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲1.46ms] Passed 4 tests
An overview of server-side resources used by Hello Server by Liquid Web
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 44.97 ▲1.71 |
Dashboard /wp-admin | 3.36 ▲0.06 | 53.64 ▲2.94 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.01 ▲3.03 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.68 ▼1.85 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 40.45 ▲6.36 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Hello Server by Liquid Web
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲153 | 13.30 ▼1.07 | 1.69 ▼0.14 | 48.76 ▲2.26 |
Dashboard /wp-admin | 2,254 ▲63 | 4.89 ▼0.96 | 106.98 ▲0.35 | 43.12 ▲2.60 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.03 ▲0.02 | 35.33 ▼5.27 | 33.25 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,577 ▲57 | 23.49 ▲0.15 | 652.80 ▼96.46 | 56.46 ▼12.89 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.21 ▼0.02 | 92.42 ▼5.97 | 40.49 ▼7.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- 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 smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/hello-server/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-server/hello-server.php:63
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/hello-server/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-server/hello-server.php:63
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
8 plugin tags: cluster, multi-node, hostname, clustering, server info...
hello-server/hello-server.php 69% from 13 tests
Analyzing the main PHP file in "Hello Server by Liquid Web" version 1.3.1
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin878 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 165 | 165 | 535 |
PHP | 4 | 63 | 132 | 222 |
Bourne Shell | 1 | 21 | 7 | 99 |
XML | 2 | 2 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ 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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.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
No PNG files were detected