Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼142.77ms] Passed 4 tests
A check of server-side resources used by Page Size Checker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 38.95 ▲1.80 |
Dashboard /wp-admin | 3.06 ▲0.01 | 46.61 ▼2.19 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 47.10 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 106.86 ▼565.54 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 39.46 ▲2.49 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Page Size Checker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲126 | 15.79 ▲0.22 | 9.68 ▼2.08 | 52.14 ▲0.48 |
Dashboard /wp-admin | 2,982 ▲48 | 5.89 ▼0.06 | 148.11 ▼10.85 | 129.69 ▲16.03 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.69 ▼0.00 | 68.64 ▼12.15 | 94.30 ▼13.92 |
Add New Post /wp-admin/post-new.php | 1,696 ▲115 | 17.79 ▲2.48 | 377.58 ▼62.08 | 130.99 ▲6.92 |
Media Library /wp-admin/upload.php | 1,767 ▼43 | 5.02 ▲0.01 | 152.79 ▼29.50 | 158.54 ▲28.64 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: bandwidth, speed, web space, page size checker
page-size-checker/page-size-checker.php 92% from 13 tests
The main PHP script in "Page Size Checker" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 204 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected220 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 21 | 1 | 128 |
PHP | 2 | 44 | 11 | 89 |
JavaScript | 1 | 0 | 2 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/pagesizechecker.png | 36.27KB | 12.68KB | ▼ 65.05% |
assets/images/logo.png | 3.49KB | 1.18KB | ▼ 66.06% |
assets/images/arrow.png | 2.87KB | 0.15KB | ▼ 94.62% |