89% hyper-pwa

Code Review | Hyper PWA

WordPress plugin Hyper PWA scored89%from 54 tests.

About plugin

  • Plugin page: hyper-pwa
  • Plugin version: 2.33.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Jun 12, 2023
  • Number of updates: 122
  • Update frequency: every 6.8 days
  • Top authors: rickey29 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /8,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▲1.40ms] Passed 4 tests

Server-side resources used by Hyper PWA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4347.70 ▲2.28
Dashboard /wp-admin3.72 ▲0.4157.68 ▲6.13
Posts /wp-admin/edit.php3.77 ▲0.4163.49 ▲5.03
Add New Post /wp-admin/post-new.php6.23 ▲0.34103.41 ▼2.22
Media Library /wp-admin/upload.php3.55 ▲0.3241.98 ▲0.52

Server storage [IO: ▲0.16MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
hyper-pwa-transient-timestamp
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
hyper-pwa-version-id

Browser metrics Passed 4 tests

An overview of browser requirements for Hyper PWA
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,997 ▲21114.89 ▲0.402.07 ▲0.2239.16 ▼1.01
Dashboard /wp-admin2,373 ▲1966.46 ▲0.84110.45 ▲20.4740.55 ▼5.03
Posts /wp-admin/edit.php2,301 ▲2013.58 ▲1.6254.05 ▲16.9032.16 ▼5.43
Add New Post /wp-admin/post-new.php1,559 ▲3323.66 ▲0.57621.65 ▼22.6032.94 ▼21.90
Media Library /wp-admin/upload.php1,444 ▲444.43 ▲0.2986.78 ▼18.7743.90 ▲0.64

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
The following items require your attention
  • This plugin does not fully uninstall, 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: Screenshot #1 (https://download.flexplat.com/flexplat.png) image required
You can look at the official readme.txt

hyper-pwa/hyper-pwa.php 92% from 13 tests

"Hyper PWA" version 2.33.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin2,863 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15575982,783
JavaScript35046
CSS14034

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity19.33
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods109
▷ Static methods00.00%
▷ Public methods8376.15%
▷ Protected methods00.00%
▷ Private methods2623.85%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants45
▷ Global constants45100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/maskable-icon-192.png6.45KB2.79KB▼ 56.73%
img/icon-512.png16.13KB7.96KB▼ 50.64%
img/maskable-icon-512.png21.81KB7.02KB▼ 67.80%
img/icon-192.png4.97KB3.11KB▼ 37.51%