78% tapwarp

Code Review | Tap Warp

WordPress plugin Tap Warp scored78%from 54 tests.

About plugin

  • Plugin page: tapwarp
  • Plugin version: 0.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2016
  • Latest release: Oct 15, 2016
  • Number of updates: 23
  • Update frequency: every 3.0 days
  • Top authors: yoihito (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /673 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.29ms] Passed 4 tests

Server-side resources used by Tap Warp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0647.30 ▼1.75
Dashboard /wp-admin3.37 ▲0.0752.03 ▲1.02
Posts /wp-admin/edit.php3.43 ▲0.0750.19 ▼1.70
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.24 ▼14.71
Media Library /wp-admin/upload.php3.29 ▲0.0643.15 ▲5.31
Tap Warp /wp-admin/options-general.php?page=tapwarp-options-admin-menu3.2732.48

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 432 new files
Database: no new tables, 7 new options
New WordPress options
tapwarp_accept_authKey
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Tap Warp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.68 ▼0.631.72 ▲0.0447.80 ▲3.73
Dashboard /wp-admin2,212 ▲215.89 ▲0.98104.60 ▼5.7139.13 ▼4.26
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0136.75 ▲0.6332.50 ▼0.38
Add New Post /wp-admin/post-new.php1,538 ▲1923.15 ▼0.31685.45 ▼4.3566.66 ▲10.74
Media Library /wp-admin/upload.php1,453 ▲624.25 ▲0.04108.79 ▲3.4543.62 ▲0.66
Tap Warp /wp-admin/options-general.php?page=tapwarp-options-admin-menu9502.1927.2625.85

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 did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • tapwarp_accept_authKey
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tapwarp/phpqrcode/index.php
    • > /wp-content/plugins/tapwarp/tapwarp.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=tapwarp-options-admin-menu
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=tapwarp-options-admin-menu 187 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === tapwarp === )
The official readme.txt might help

tapwarp/tapwarp.php 92% from 13 tests

This is the main PHP file of "Tap Warp" version 0.1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin6,898 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,5301,9926,545
JavaScript2239206
CSS1249147

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity31.56
▷ Minimum class complexity1.00
▷ Maximum class complexity292.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes00.00%
▷ Concrete classes34100.00%
▷ Final classes00.00%
Methods369
▷ Static methods12233.06%
▷ Public methods26972.90%
▷ Protected methods9626.02%
▷ Private methods41.08%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants90
▷ Global constants90100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
42 compressed PNG files occupy 0.44MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
phpqrcode/cache/frame_19.png0.22KB0.21KB▼ 4.89%
phpqrcode/cache/frame_10.png0.20KB0.20KB▼ 0.99%
phpqrcode/cache/frame_6.png0.15KB0.14KB▼ 1.99%
phpqrcode/cache/frame_21.png0.23KB0.22KB▼ 3.83%
phpqrcode/cache/frame_3.png0.14KB0.14KB▼ 2.72%