Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▲1.03ms] Passed 4 tests
This is a short check of server-side resources used by Progressive WordPress (PWA)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 46.29 ▲10.13 |
Dashboard /wp-admin | 4.20 ▲0.85 | 55.40 ▼0.64 |
Posts /wp-admin/edit.php | 4.25 ▲0.90 | 52.57 ▲2.29 |
Add New Post /wp-admin/post-new.php | 6.80 ▲0.92 | 89.03 ▼7.66 |
Media Library /wp-admin/upload.php | 4.13 ▲0.90 | 45.22 ▲12.37 |
Add to Homescreen /wp-admin/admin.php?page=pwp-manifest | 4.10 | 40.67 |
About /wp-admin/admin.php?page=progressive-wordpress | 4.10 | 37.64 |
Push Notifications /wp-admin/admin.php?page=pwp-push | 4.10 | 38.05 |
Offline usage /wp-admin/admin.php?page=pwp-offlineusage | 4.10 | 40.26 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 145 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
pwp-settings |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
pwp_data |
Browser metrics Passed 4 tests
Checking browser requirements for Progressive WordPress (PWA)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.40 ▼0.88 | 2.09 ▲0.44 | 44.63 ▲2.88 |
Dashboard /wp-admin | 2,249 ▲58 | 5.14 ▲0.22 | 104.37 ▲2.30 | 92.07 ▲50.69 |
Posts /wp-admin/edit.php | 2,149 ▲57 | 2.37 ▲0.39 | 36.96 ▼4.31 | 34.64 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,719 ▲200 | 22.45 ▼0.74 | 766.94 ▲96.75 | 30.87 ▼23.60 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.49 ▲0.33 | 98.71 ▼0.53 | 89.70 ▲42.29 |
Add to Homescreen /wp-admin/admin.php?page=pwp-manifest | 1,395 | 2.36 | 52.32 | 39.41 |
About /wp-admin/admin.php?page=progressive-wordpress | 1,058 | 2.14 | 33.32 | 47.06 |
Push Notifications /wp-admin/admin.php?page=pwp-push | 960 | 2.13 | 29.38 | 30.07 |
Offline usage /wp-admin/admin.php?page=pwp-offlineusage | 1,401 | 2.36 | 48.34 | 37.27 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- pwp-settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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 fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/progressive-wp/Classes/Libs/minify/src/Exceptions/FileImportException.php:8
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/progressive-wp/Classes/Libs/minify/src/JS.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/progressive-wp/progressive-wordpress.php:26
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/progressive-wp/Classes/Libs/minify/src/Exceptions/IOException.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/progressive-wp/3rdparty-support/amp.php:7
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/progressive-wp/Classes/Libs/path-converter/src/Converter.php:19
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Exception' not found in wp-content/plugins/progressive-wp/Classes/Libs/minify/src/Exceptions/BasicException.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/progressive-wp/3rdparty-support/accelerated-moblie-pages.php:7
- > PHP Fatal error
Uncaught Error: Class 'MatthiasMullie\\Minify\\Minify' not found in wp-content/plugins/progressive-wp/Classes/Libs/minify/src/CSS.php:19
- > PHP Fatal error
Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/progressive-wp/Classes/Libs/path-converter/src/NoConverter.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
progressive-wp/progressive-wordpress.php 85% from 13 tests
The principal PHP file in "Progressive WordPress (PWA)" v. 2.1.13 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("progressive-wp.php" instead of "progressive-wordpress.php")
- Git Repository: An alternative Git repository was detected
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected20,212 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 9,997 |
JavaScript | 41 | 1,256 | 3,575 | 4,488 |
PHP | 31 | 948 | 1,226 | 3,621 |
CSS | 6 | 200 | 38 | 1,394 |
PO File | 1 | 145 | 164 | 408 |
Markdown | 1 | 70 | 0 | 243 |
SVG | 18 | 0 | 0 | 44 |
YAML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 181 | |
▷ Static methods | 3 | 1.66% |
▷ Public methods | 142 | 78.45% |
▷ Protected methods | 33 | 18.23% |
▷ Private methods | 6 | 3.31% |
Functions | 49 | |
▷ Named functions | 24 | 48.98% |
▷ Anonymous functions | 25 | 51.02% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pwa-menu-icon.png | 1.58KB | 0.82KB | ▼ 48.43% |