84% futusign

Code Review | futusign

WordPress plugin futusign scored84%from 54 tests.

About plugin

  • Plugin page: futusign
  • Plugin version: 3.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Feb 10, 2017
  • Latest release: Sep 3, 2020
  • Number of updates: 96
  • Update frequency: every 13.5 days
  • Top authors: sckmkny (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,037 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.55ms] Passed 4 tests

A check of server-side resources used by futusign
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.37 ▼3.68
Dashboard /wp-admin3.37 ▲0.0646.06 ▲1.89
Posts /wp-admin/edit.php3.48 ▲0.1249.91 ▲8.03
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.50 ▼15.85
Media Library /wp-admin/upload.php3.29 ▲0.0634.26 ▼0.56

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by futusign
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.18 ▼1.211.72 ▲0.0738.40 ▼0.31
Dashboard /wp-admin2,226 ▲375.87 ▲0.9499.25 ▼24.5038.22 ▼10.49
Posts /wp-admin/edit.php2,112 ▲202.01 ▲0.0140.00 ▲2.8837.52 ▲7.77
Add New Post /wp-admin/post-new.php1,529 ▲117.54 ▼0.78663.09 ▲28.4851.78 ▲0.76
Media Library /wp-admin/upload.php1,405 ▲144.28 ▲0.0797.59 ▼7.0241.95 ▼2.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/futusign/public/screen/index.php
    • > /wp-content/plugins/futusign/admin/index.php
    • > /wp-content/plugins/futusign/public/partials/index.php
    • > /wp-content/plugins/futusign/inactive/partials/index.php
    • > /wp-content/plugins/futusign/index.php
    • > /wp-content/plugins/futusign/public/index.php
    • > /wp-content/plugins/futusign/inactive/index.php
    • > /wp-content/plugins/futusign/includes/index.php
    • > /wp-content/plugins/futusign/common/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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: signage, digital

futusign/futusign.php 92% from 13 tests

The entry point to "futusign" version 3.0.5 is a PHP file that has certain tags in its header comment area
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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,736 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52501,6592,334
JSX2020602,071
PHP1857241,599
HTML1000360
CSS1000192
JSON410131
Markdown115049

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.67
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods64
▷ Static methods46.25%
▷ Public methods5687.50%
▷ Protected methods00.00%
▷ Private methods812.50%
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

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
common/img/image.png0.45KB0.34KB▼ 22.59%
public/screen/src/components/App/NoMedia/noMedia.png7.03KB3.68KB▼ 47.61%
public/screen/src/components/App/OfflineImage/offline.png9.66KB4.69KB▼ 51.44%
admin/screen/src/components/App/img/image.png0.45KB0.34KB▼ 22.59%
admin/screen/src/components/App/img/youtube_video.png0.34KB0.25KB▼ 27.48%