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.00MB] [CPU: ▼6.76ms] Passed 4 tests
Server-side resources used by KMM Hacks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.13 ▼3.82 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.59 ▼18.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.41 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.91 ▼5.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.21 ▲1.83 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for KMM Hacks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.21 ▼1.19 | 1.98 ▼0.19 | 45.06 ▼1.28 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▼0.13 | 103.91 ▼1.20 | 41.30 ▼4.56 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 34.02 ▼7.01 | 32.51 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.21 ▲5.01 | 681.55 ▲26.97 | 54.67 ▲3.75 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.20 ▲0.02 | 101.66 ▲3.16 | 43.30 ▲0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/kmm-hacks/tests/phpunit/bootstrap.php
- 97× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/kmm-hacks/tests/test-hacks.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/kmm-hacks/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
- Stable tag: Empty value
kmm-hacks/kmm-hacks.php Passed 13 tests
The main PHP file in "KMM Hacks" ver. 0.1.24 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
This is a short description of what the plugin does.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,620 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 619 | 718 | 3,073 |
JSON | 3 | 0 | 0 | 298 |
Bourne Shell | 2 | 42 | 14 | 146 |
YAML | 4 | 18 | 2 | 64 |
XML | 1 | 1 | 0 | 22 |
PO File | 1 | 0 | 1 | 16 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 1 | 0.96% |
▷ Concrete classes | 103 | 99.04% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 13 | 8.39% |
▷ Public methods | 113 | 72.90% |
▷ Protected methods | 35 | 22.58% |
▷ Private methods | 7 | 4.52% |
Functions | 20 | |
▷ Named functions | 4 | 20.00% |
▷ Anonymous functions | 16 | 80.00% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.46MB with 0.46MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/screenshot-3.png | 83.71KB | 0.00KB | ▼ 100.00% |
(invalid) assets/screenshot-2.png | 128.44KB | 0.00KB | ▼ 100.00% |
(invalid) screen.png | 116.84KB | 0.00KB | ▼ 100.00% |
(invalid) assets/screenshot-1.png | 137.02KB | 0.00KB | ▼ 100.00% |