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
Install script ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼140.81ms] Passed 4 tests
This is a short check of server-side resources used by AP Theme Utility Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.18 ▲0.34 | 42.34 ▲6.55 |
Dashboard /wp-admin | 3.47 ▲0.41 | 52.36 ▲0.27 |
Posts /wp-admin/edit.php | 3.51 ▲0.41 | 53.54 ▲5.37 |
Add New Post /wp-admin/post-new.php | 5.76 ▲0.33 | 96.51 ▼565.15 |
Media Library /wp-admin/upload.php | 3.35 ▲0.34 | 35.00 ▼3.72 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for AP Theme Utility Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.91 ▲0.19 | 14.35 ▲4.22 | 47.48 ▼1.44 |
Dashboard /wp-admin | 2,967 ▲33 | 5.92 ▼0.05 | 160.74 ▲2.84 | 109.84 ▼4.51 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.03 | 71.84 ▼1.35 | 92.22 ▲3.90 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.49 ▼0.19 | 391.22 ▼25.88 | 117.39 ▲8.75 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.02 | 158.28 ▼6.61 | 117.67 ▲0.26 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ap-theme-utility-plugin/ap-theme-utility-plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is required in ap-theme-utility-plugin/assets to your readme.txt
ap-theme-utility-plugin/ap-theme-utility-plugin.php 92% from 13 tests
Analyzing the main PHP file in "AP Theme Utility Plugin" version 1.0.5
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
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
Good job! No executable or dangerous file extensions detected8,086 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 137 | 23 | 6,243 |
PHP | 3 | 363 | 377 | 1,670 |
CSS | 1 | 11 | 4 | 74 |
Markdown | 1 | 19 | 0 | 68 |
JavaScript | 1 | 4 | 1 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 58.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 6.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 98.39% |
▷ Protected methods | 1 | 1.61% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
importer/demo/scrollme-demo/screen.png | 113.82KB | 31.84KB | ▼ 72.03% |
css/preview.png | 0.44KB | 0.37KB | ▼ 16.48% |