83% web-manifest

Code Review | Web Manifest

WordPress plugin Web Manifest scored 83% from 54 tests.

About plugin

  • Plugin page: web-manifest
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Dec 14, 2017
  • Latest release: Dec 19, 2017
  • Number of updates: 12
  • Update frequency: every 0.4 days
  • Top authors: fro1d (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,791 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.89 ▲5.49
Dashboard /wp-admin3.36 ▲0.0647.76 ▼8.04
Posts /wp-admin/edit.php3.41 ▲0.0549.78 ▲4.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.44 ▼17.50
Media Library /wp-admin/upload.php3.28 ▲0.0537.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.29 ▼1.131.66 ▼0.1437.60 ▼6.93
Dashboard /wp-admin2,210 ▲224.86 ▼0.95104.92 ▼11.4939.14 ▼6.00
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0538.30 ▲3.7935.29 ▲0.35
Add New Post /wp-admin/post-new.php1,517 ▼017.64 ▲0.01594.86 ▼62.4454.60 ▲5.04
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0494.27 ▼2.7141.86 ▼1.51
Web Manifest /wp-admin/web-manifest.php260.440.0914.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:
LanguageFilesBlank linesComment linesLines of code
PHP3238133496
PO File14041123
JavaScript15217100
CSS181791
JSON1001

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 code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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