Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.68ms] Passed 4 tests
A check of server-side resources used by HaTeMiLe for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 17.77 ▼24.04 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.89 ▼2.19 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.87 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.82 ▲8.43 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.63 ▲6.19 |
HaTeMiLe for WP /wp-admin/options-general.php?page=hatemile-settings | 3.25 | 32.81 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for HaTeMiLe for WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,038 ▲267 | 13.70 ▼0.67 | 2.37 ▲0.21 | 41.07 ▼3.20 |
Dashboard /wp-admin | 2,213 ▲25 | 5.77 ▼0.14 | 98.85 ▼17.67 | 38.96 ▼4.39 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.07 | 39.59 ▲1.05 | 34.61 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,523 ▼6 | 22.78 ▼0.40 | 598.09 ▼75.27 | 57.40 ▲5.73 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▲0.00 | 96.52 ▼3.80 | 46.89 ▲6.21 |
HaTeMiLe for WP /wp-admin/options-general.php?page=hatemile-settings | 881 | 2.18 | 23.10 | 28.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hatemile-for-wp/phpQuery/demo.php
- 130× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Validate/Hostname.php on line 27
- > PHP Warning
require_once(Zend/Validate/Hostname/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Validate/Hostname/Li.php on line 27
- > PHP Fatal error
Uncaught Error: Call to a member function find() on null in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/plugins/Scripts/print_websafe.php:10
- > PHP Warning
require_once(Zend/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Http/Exception.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hatemile-for-wp/execute_hatemile.php:4
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/Hostname/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Validate/Hostname/Hu.php on line 27
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Validate/Digits.php on line 27
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Validate/File/Size.php' (include_path='.:/usr/share/php') in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Validate/File/FilesSize.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Http/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Http/Client/Exception.php on line 23
- > PHP Warning
require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/hatemile-for-wp/phpQuery/phpQuery/phpQuery/Zend/Validate/Date.php on line 27
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: wai-aria, accessibility, screen reader, wcag, assistive technology
hatemile-for-wp/hatemile_for_wp.php 92% from 13 tests
Analyzing the main PHP file in "HaTeMiLe for WP" version 1.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hatemile-for-wp.php" instead of "hatemile_for_wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected32,074 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 2,114 | 10,013 | 14,361 |
HTML | 22 | 1,299 | 0 | 14,088 |
JavaScript | 7 | 646 | 490 | 2,700 |
JSON | 2 | 0 | 0 | 414 |
Markdown | 5 | 106 | 0 | 274 |
CSS | 2 | 32 | 2 | 191 |
XML | 2 | 0 | 0 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 22.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 558.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 17 | |
Traits | 0 | |
Classes | 95 | |
▷ Abstract classes | 9 | 9.47% |
▷ Concrete classes | 86 | 90.53% |
▷ Final classes | 0 | 0.00% |
Methods | 884 | |
▷ Static methods | 147 | 16.63% |
▷ Public methods | 729 | 82.47% |
▷ Protected methods | 148 | 16.74% |
▷ Private methods | 7 | 0.79% |
Functions | 26 | |
▷ Named functions | 22 | 84.62% |
▷ Anonymous functions | 4 | 15.38% |
Constants | 168 | |
▷ Global constants | 4 | 2.38% |
▷ Class constants | 164 | 97.62% |
▷ Public constants | 164 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpQuery/api-reference/media/empty.png | 0.20KB | 0.09KB | ▼ 53.88% |
phpQuery/api-reference/media/background.png | 0.23KB | 0.10KB | ▼ 58.82% |