Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.51ms] Passed 4 tests
Analyzing server-side resources used by Minimum Configuration WordPress PWA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 34.40 ▼8.37 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.92 ▼2.76 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 51.74 ▲5.13 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 96.75 ▲8.31 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.07 ▼4.05 |
MCW PWA Settings /wp-admin/options-general.php?page=mcw_setting_page | 3.34 | 37.83 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Minimum Configuration WordPress PWA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲118 | 13.16 ▼1.23 | 8.67 ▲6.77 | 46.16 ▼1.89 |
Dashboard /wp-admin | 2,210 ▲19 | 5.91 ▲0.96 | 101.61 ▼6.44 | 39.71 ▼2.37 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.05 | 42.69 ▲5.87 | 35.39 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 23.16 ▲5.00 | 658.78 ▲51.78 | 52.82 ▼6.11 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.00 | 95.40 ▼7.59 | 41.82 ▼2.29 |
MCW PWA Settings /wp-admin/options-general.php?page=mcw_setting_page | 841 | 2.02 | 25.70 | 30.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mcw-pwa/MCW_PWA.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'MCW_PWA_DIRincludes/MCW_PWA_Module.php' (include_path='.:/usr/share/php') in wp-content/plugins/mcw-pwa/includes/MCW_PWA_LazyLoad.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'MCW_PWA_DIRincludes/MCW_PWA_Module.php' (include_path='.:/usr/share/php') in wp-content/plugins/mcw-pwa/includes/MCW_PWA_Monitor.php on line 7
- > PHP Warning
Use of undefined constant MCW_PWA_DIR - assumed 'MCW_PWA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mcw-pwa/includes/service_workers/MCW_PWA_Service_Worker.php on line 13
- > PHP Warning
Use of undefined constant MCW_PWA_DIR - assumed 'MCW_PWA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mcw-pwa/includes/MCW_PWA_LazyLoad.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'MCW_PWA_DIR/includes/service_workers/MCW_PWA_Service_Worker.php' (include_path='.:/usr/share/php') in wp-content/plugins/mcw-pwa/includes/MCW_PWA_Settings.php on line 3
- > PHP Warning
require_once(MCW_PWA_DIR/includes/service_workers/MCW_PWA_Service_Worker.php): failed to open stream: No such file or directory in wp-content/plugins/mcw-pwa/includes/MCW_PWA_Settings.php on line 3
- > PHP Warning
require_once(MCW_PWA_DIRincludes/MCW_PWA_Module.php): failed to open stream: No such file or directory in wp-content/plugins/mcw-pwa/includes/MCW_PWA_Assets.php on line 2
- > PHP Warning
require_once(MCW_PWA_DIRincludes/MCW_PWA_Module.php): failed to open stream: No such file or directory in wp-content/plugins/mcw-pwa/includes/service_workers/MCW_PWA_Service_Worker.php on line 13
- > PHP Warning
require_once(MCW_PWA_DIRincludes/MCW_PWA_Module.php): failed to open stream: No such file or directory in wp-content/plugins/mcw-pwa/includes/MCW_PWA_LazyLoad.php on line 2
- > PHP Warning
Use of undefined constant MCW_PWA_DIR - assumed 'MCW_PWA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mcw-pwa/includes/MCW_PWA_Assets.php on line 2
- > 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 Passed 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
8 plugin tags: amp, accelerator mobile page, workbox, minimum config, lazy loading...
mcw-pwa/MCW_PWA.php 77% from 13 tests
Analyzing the main PHP file in "Minimum Configuration WordPress PWA" version 0.2.3
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("mcw-pwa.php" instead of "MCW_PWA.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,789 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 1,546 | 4,639 | 5,402 |
PHP | 14 | 1,162 | 8,729 | 2,696 |
HTML | 4 | 51 | 30 | 385 |
JSON | 4 | 0 | 0 | 154 |
Markdown | 6 | 52 | 0 | 151 |
INI | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 8.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 705 | |
▷ Static methods | 6 | 0.85% |
▷ Public methods | 692 | 98.16% |
▷ Protected methods | 11 | 1.56% |
▷ Private methods | 2 | 0.28% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 5.53KB | 3.02KB | ▼ 45.43% |