78% steeply-qr

Code Review | Steeply QR

WordPress plugin Steeply QR scored 78% from 54 tests.

About plugin

  • Plugin page: steeply-qr
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Nov 26, 2019
  • Latest release: Nov 26, 2019
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: arthurpatriot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼16.68ms] Passed 4 tests

A check of server-side resources used by Steeply QR
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.74 ▼9.68
Dashboard /wp-admin3.33 ▲0.0247.09 ▼1.58
Posts /wp-admin/edit.php3.38 ▲0.0247.97 ▲1.75
Add New Post /wp-admin/post-new.php3.11 ▼2.7736.52 ▼56.36
Media Library /wp-admin/upload.php3.25 ▲0.0236.13 ▲0.91

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Steeply QR
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.34 ▼0.791.53 ▼0.1838.96 ▼5.49
Dashboard /wp-admin2,217 ▲295.85 ▲0.9698.14 ▼16.3937.57 ▼10.23
Posts /wp-admin/edit.php2,100 ▲112.03 ▲0.0436.37 ▼2.1132.26 ▼1.41
Add New Post /wp-admin/post-new.php6,483 ▲4,95020.33 ▼3.01891.51 ▲219.1764.19 ▲8.71
Media Library /wp-admin/upload.php1,402 ▲204.20 ▲0.0493.23 ▼11.7040.69 ▼6.04

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/steeply-qr/public/partials/steeply-qr-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Steeply_Qr_Admin' not found in wp-content/plugins/steeply-qr/admin/partials/steeply-qr-admin-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === steeply-qr === )
You can take inspiration from this readme.txt

steeply-qr/steeply-qr.php Passed 13 tests

The main file in "Steeply QR" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Generate QR Codes for your Posts, Pages and Custom Post Types.

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
Everything looks great! No dangerous files found in this plugin592 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12242580408
CSS2264122
JavaScript2202762

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods513.16%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected