Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼295.34ms] Passed 4 tests
Analyzing server-side resources used by Advanced Page Template
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 55.91 ▲4.39 |
Dashboard /wp-admin | 3.44 ▲0.02 | 31.73 ▼3.04 |
Posts /wp-admin/edit.php | 3.67 ▲0.02 | 36.58 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 96.86 ▼1,175.06 |
Media Library /wp-admin/upload.php | 3.32 ▲0.01 | 24.90 ▼1.49 |
Server storage [IO: ▲1.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Page Template
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,787 ▲65 | 15.83 ▲0.19 | 6.77 ▲0.80 | 2.05 ▼0.56 |
Dashboard /wp-admin | 2,897 ▲43 | 6.11 ▼0.03 | 117.34 ▼19.32 | 155.43 ▼2.87 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▼0.13 | 63.58 ▲1.55 | 140.99 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,670 ▲9 | 18.39 ▲2.48 | 400.25 ▼44.77 | 156.56 ▼4.32 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.50 ▲0.02 | 138.18 ▼3.56 | 186.87 ▲2.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-page-template/index.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Configuring the Custom Fields in the template file), #2 (Check custom fields out on the backend)
advanced-page-template/index.php 85% from 13 tests
The main PHP script in "Advanced Page Template" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-page-template.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected162 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 16 | 155 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Analyzing 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.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 1.13MB with 0.67MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 603.02KB | 243.22KB | ▼ 59.67% |
screenshot-1.png | 557.31KB | 235.41KB | ▼ 57.76% |