Benchmarks
Plugin footprint 83% from 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.12MB] [CPU: ▼5.79ms] Passed 4 tests
This is a short check of server-side resources used by PageSpeed Module
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.89 ▲2.84 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.74 ▼11.31 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 45.05 ▼1.01 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.90 ▼13.67 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.06 ▲6.16 |
PageSpeed /wp-admin/options-general.php?page=mod-pagespeed | 3.33 | 29.81 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for PageSpeed Module
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.34 ▼0.29 | 1.68 ▲0.06 | 44.08 ▲4.57 |
Dashboard /wp-admin | 2,188 ▲11 | 5.51 ▼0.14 | 85.21 ▼3.58 | 85.71 ▲43.23 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.98 ▼0.02 | 33.26 ▼2.27 | 32.31 ▼3.97 |
Add New Post /wp-admin/post-new.php | 1,686 ▲158 | 22.28 ▼0.88 | 742.88 ▲92.92 | 50.29 ▲2.64 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.11 ▼0.08 | 92.90 ▲0.18 | 63.30 ▲21.75 |
PageSpeed /wp-admin/options-general.php?page=mod-pagespeed | 895 | 2.19 | 22.18 | 28.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: apache, mod_pagespeed, cache, nginx, mod pagespeed...
kagg-pagespeed-module/mod-pagespeed.php 92% from 13 tests
This is the main PHP file of "PageSpeed Module" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kagg-pagespeed-module.php" instead of "mod-pagespeed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,097 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 204 | 529 | 861 |
CSS | 1 | 17 | 0 | 110 |
PO File | 1 | 16 | 16 | 66 |
JavaScript | 1 | 14 | 6 | 55 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 19 | 33.33% |
▷ Public methods | 49 | 85.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 14.04% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-16x16.png | 0.76KB | 0.85KB | 0.00% |