Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.79ms] Passed 4 tests
A check of server-side resources used by Homepage Planner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.41 ▼4.36 |
Dashboard /wp-admin | 3.51 ▲0.20 | 46.36 ▼5.06 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.45 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 93.54 ▼3.78 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.20 ▲2.26 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Homepage Planner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▼0.18 | 1.79 ▼0.06 | 43.31 ▼0.17 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼0.02 | 111.99 ▲10.88 | 38.75 ▼0.64 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 39.00 ▲2.53 | 36.04 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,528 ▲8 | 18.58 ▼4.47 | 629.00 ▼54.45 | 50.11 ▼10.98 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.16 ▼0.10 | 92.65 ▼7.37 | 40.66 ▼2.54 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\CutStub' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Caster/CutArrayStub.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php:28
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Cloner/VarCloner.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Caster/EnumStub.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Dumper/ContextualizedDumper.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Caster/ClassStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Command/ServerDumpCommand.php:35
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php:23
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' not found in wp-content/plugins/homepage-planner/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:22
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== homepage-planner ===
)
homepage-planner/adb-homepage-planner.php 77% from 13 tests
The primary PHP file in "Homepage Planner" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("homepage-planner.php" instead of "adb-homepage-planner.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/homepage-planner/vendor/bin/var-dump-server.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 1,606 | 1,587 | 10,443 |
JSON | 6 | 0 | 0 | 490 |
CSS | 1 | 0 | 0 | 130 |
Markdown | 8 | 43 | 0 | 122 |
Bourne Shell | 1 | 3 | 1 | 10 |
JavaScript | 1 | 0 | 0 | 10 |
YAML | 1 | 3 | 0 | 8 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 17.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 8 | 11.94% |
Methods | 363 | |
▷ Static methods | 200 | 55.10% |
▷ Public methods | 300 | 82.64% |
▷ Protected methods | 21 | 5.79% |
▷ Private methods | 42 | 11.57% |
Functions | 63 | |
▷ Named functions | 52 | 82.54% |
▷ Anonymous functions | 11 | 17.46% |
Constants | 45 | |
▷ Global constants | 4 | 8.89% |
▷ Class constants | 41 | 91.11% |
▷ Public constants | 40 | 97.56% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin