Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.12ms] Passed 4 tests
This is a short check of server-side resources used by Web Manifest
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.89 ▲5.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.76 ▼8.04 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.78 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.44 ▼17.50 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.96 ▲4.23 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Web Manifest: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.29 ▼1.13 | 1.66 ▼0.14 | 37.60 ▼6.93 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.95 | 104.92 ▼11.49 | 39.14 ▼6.00 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.05 | 38.30 ▲3.79 | 35.29 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,517 ▼0 | 17.64 ▲0.01 | 594.86 ▼62.44 | 54.60 ▲5.04 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.23 ▲0.04 | 94.27 ▼2.71 | 41.86 ▼1.51 |
Web Manifest /wp-admin/web-manifest.php | 26 | 0.44 | 0.09 | 14.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/web-manifest.php
- > Network (severe)
wp-admin/web-manifest.php - Failed to load resource: the server responded with a status of 404 (Not 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
5 plugin tags: web manifest, mobile web, progressive web apps, mobile, android
web-manifest/webmanifest.php 77% from 13 tests
The main PHP script in "Web Manifest" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("web-manifest.php" instead of "webmanifest.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected811 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 238 | 133 | 496 |
PO File | 1 | 40 | 41 | 123 |
JavaScript | 1 | 52 | 17 | 100 |
CSS | 1 | 8 | 17 | 91 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin