90% gdc-pwa

Code Review | GDC PWA

WordPress plugin GDC PWA scored90%from 54 tests.

About plugin

  • Plugin page: gdc-pwa
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2019
  • Latest release: Aug 20, 2019
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: gdcpwa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.93ms] Passed 4 tests

Server-side resources used by GDC PWA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0723.65 ▼15.15
Dashboard /wp-admin3.31 ▲0.0147.02 ▼7.62
Posts /wp-admin/edit.php3.36 ▲0.0150.67 ▼3.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.58 ▼25.65
Media Library /wp-admin/upload.php3.23 ▲0.0137.73 ▼0.13

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • You have illegally modified 2 files (0.61KB) outside of "wp-content/plugins/gdc-pwa/" and "wp-content/uploads/"
    • (new file) service-worker.js
    • (new file) manifest.json
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for GDC PWA
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.25 ▼1.063.91 ▲2.0544.76 ▲3.04
Dashboard /wp-admin2,237 ▲315.88 ▲0.98107.91 ▼1.5743.54 ▲0.46
Posts /wp-admin/edit.php2,116 ▲192.02 ▲0.0241.99 ▲0.9138.12 ▲2.42
Add New Post /wp-admin/post-new.php1,558 ▲1323.07 ▼0.08642.36 ▼67.1462.03 ▲8.99
Media Library /wp-admin/upload.php1,410 ▲74.17 ▼0.0696.20 ▼10.5444.76 ▼2.96

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: progressive web apps, pwa

gdc-pwa/gdc-pwa.php Passed 13 tests

"GDC PWA" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Habilita la instalación de paginas web progressive

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin176 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13115101
JavaScript38540
JSON10020
CSS12015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png6.64KB3.42KB▼ 48.54%