84% installable

Code Review | Installable

WordPress plugin Installable scored84%from 54 tests.

About plugin

  • Plugin page: installable
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2020
  • Latest release: Oct 9, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: adaptsites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /455 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
Installer ran successfully

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

Server-side resources used by Installable
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0725.80 ▼27.34
Dashboard /wp-admin3.34 ▲0.0449.24 ▲0.67
Posts /wp-admin/edit.php3.46 ▲0.1154.33 ▲4.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.43 ▼7.77
Media Library /wp-admin/upload.php3.25 ▲0.0235.27 ▲1.87
Progressive Web App /wp-admin/options-general.php?page=aspwa3.0630.30

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

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 2 files (1.48KB) outside of "wp-content/plugins/installable/" and "wp-content/uploads/"
    • (new file) adaptsites-pwa-manifest.json
    • (new file) adaptsites-pwa-sw.js
Filesystem: 72 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
aspwa_manifest_options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
aspwa_sw_options
aspwa_manifest_version

Browser metrics Passed 4 tests

Checking browser requirements for Installable
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲23214.74 ▲0.342.00 ▼0.0040.66 ▼9.54
Dashboard /wp-admin2,352 ▲1676.44 ▲0.62137.27 ▲20.1543.83 ▼0.21
Posts /wp-admin/edit.php2,252 ▲1633.36 ▲1.3647.23 ▲11.9628.48 ▼6.29
Add New Post /wp-admin/post-new.php1,534 ▼823.38 ▲5.11652.48 ▲5.0437.47 ▼19.34
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0383.65 ▼14.0442.03 ▼1.45
Progressive Web App /wp-admin/options-general.php?page=aspwa1,1563.1739.2525.62

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
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • aspwa_sw_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • aspwa_manifest_version
    • aspwa_manifest_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 30 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aspwa
    • > Notice in wp-content/plugins/installable/pwa-options.php+176
    Trying to access array offset on value of type bool

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 Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: pwa, mobile app, installable, progressive web app, web app

installable/installable.php Passed 13 tests

The primary PHP file in "Installable" version 1.0.0 is used by WordPress to initiate all plugin functionality
137 characters long description:
Turn your website into a progressive web app that's installable on phones. Automatically prompt your mobile visitors to install your app.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin6,315 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript351,6224,2185,590
PHP423664590
CSS11640135

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions43
▷ Named functions43100.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
There are no PNG files in this plugin