Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.03MB] [CPU: ▼287.56ms] Passed 4 tests
This is a short check of server-side resources used by A2 Optimized WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.04 | 65.44 ▲14.62 |
Dashboard /wp-admin | 4.43 ▲1.02 | 42.76 ▲9.89 |
Posts /wp-admin/edit.php | 4.72 ▲1.07 | 42.52 ▲4.83 |
Add New Post /wp-admin/post-new.php | 7.96 ▲0.98 | 100.63 ▼1,170.55 |
Media Library /wp-admin/upload.php | 4.37 ▲1.07 | 31.47 ▲5.58 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Illegal file modification found: 3 files (0.51KB) outside of "wp-content/plugins/a2-optimized-wp/" and "wp-content/uploads/"
- (new file) 403.shtml
- (new file) 404.shtml
- (modified) .htaccess
Filesystem: 45 new files
Database: no new tables, 2 new options
New WordPress options |
---|
A2_Optimized_Plugin__installed |
A2_Optimized_Plugin__version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for A2 Optimized WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,979 ▲225 | 16.19 ▲0.56 | 6.36 ▲0.53 | 2.09 ▼0.46 |
Dashboard /wp-admin | 3,104 ▲243 | 6.02 ▼0.14 | 120.68 ▼17.59 | 196.50 ▲34.57 |
Posts /wp-admin/edit.php | 2,715 ▲24 | 3.24 ▲0.00 | 65.73 ▲1.43 | 133.54 ▼11.88 |
Add New Post /wp-admin/post-new.php | 1,734 ▲73 | 22.86 ▲5.75 | 396.43 ▼10.37 | 156.28 ▲0.07 |
Media Library /wp-admin/upload.php | 1,728 ▲33 | 5.54 ▲0.03 | 145.53 ▲4.75 | 186.75 ▲4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/a2-optimized-wp/A2_Optimized_CacheDisk.php+971
unlink(wp-content/settings/a2opt-cache/wp.com.php): No such file or directory
- This plugin does not fully uninstall, leaving 2 options in the database
- A2_Optimized_Plugin__installed
- A2_Optimized_Plugin__version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/a2-optimized-wp/object-cache.php:520
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: hosting, optimize, lscache, a2, litespeed...
a2-optimized-wp/a2-optimized.php 85% from 13 tests
The main PHP file in "A2 Optimized WP" ver. 2.1.3.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("a2-optimized-wp.php" instead of "a2-optimized.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,674 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,322 | 1,667 | 6,159 |
CSS | 5 | 26 | 29 | 3,678 |
JSON | 1 | 0 | 0 | 387 |
SVG | 1 | 0 | 0 | 288 |
JavaScript | 3 | 56 | 43 | 162 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 73.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 3 | 25.00% |
Methods | 315 | |
▷ Static methods | 97 | 30.79% |
▷ Public methods | 227 | 72.06% |
▷ Protected methods | 26 | 8.25% |
▷ Private methods | 62 | 19.68% |
Functions | 77 | |
▷ Named functions | 14 | 18.18% |
▷ Anonymous functions | 63 | 81.82% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 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
7 PNG files occupy 0.70MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/background-left.png | 79.83KB | 36.39KB | ▼ 54.41% |
assets/images/brankic1979-icon-set.png | 216.14KB | 76.76KB | ▼ 64.48% |
assets/images/background-right.png | 75.20KB | 35.10KB | ▼ 53.33% |
assets/images/background-both.png | 157.94KB | 72.64KB | ▼ 54.01% |
assets/images/a2optimized.png | 9.71KB | 5.12KB | ▼ 47.22% |