Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼141.04ms] Passed 4 tests
A check of server-side resources used by WPeMatico Custom Hooks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 33.59 ▲11.98 |
Dashboard /wp-admin | 3.06 ▲0.00 | 49.06 ▼2.95 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 46.24 ▼2.45 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 105.32 ▼561.50 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 36.12 ▲2.76 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WPeMatico Custom Hooks: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 16.14 ▲0.23 | 9.30 ▼1.72 | 44.58 ▼5.76 |
Dashboard /wp-admin | 2,992 ▲64 | 5.99 ▼0.01 | 154.90 ▼25.50 | 123.20 ▼2.51 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 73.24 ▼0.15 | 92.38 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,683 ▲183 | 18.76 ▼0.02 | 407.83 ▼0.34 | 121.16 ▲11.97 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.05 | 163.44 ▲5.13 | 114.79 ▲0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Screenshot #1 (Settings page. Fields to fill.) image missing
wpematico-custom-hooks/wpematico_custom-hooks.php 92% from 13 tests
The primary PHP file in "WPeMatico Custom Hooks" version 1.2 is used by WordPress to initiate all plugin functionality
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 ("wpematico-custom-hooks.php" instead of "wpematico_custom-hooks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin12,723 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 1,147 | 1,186 | 10,726 |
PHP | 7 | 111 | 243 | 1,436 |
CSS | 8 | 74 | 30 | 498 |
Markdown | 1 | 28 | 0 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 18 | 85.71% |
▷ Public methods | 21 | 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 | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 47.23KB | 23.52KB | ▼ 50.20% |
screenshot-2.png | 46.45KB | 21.95KB | ▼ 52.74% |
screenshot-3.png | 37.65KB | 19.21KB | ▼ 48.97% |
screenshot-1.png | 53.27KB | 31.49KB | ▼ 40.89% |