88% sign-pantograph-extension

Code Review | Sign Pantograph Extension

WordPress plugin Sign Pantograph Extension scored 88% from 54 tests.

About plugin

  • Plugin page: sign-pantograph-e...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 5.8.1
  • First release: Sep 10, 2020
  • Latest release: Sep 10, 2020
  • Number of updates: 10
  • Update frequency: every 0.9 days
  • Top authors: lamtanphiho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 453 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Sign Pantograph Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0533.86 ▲2.40
Dashboard /wp-admin3.11 ▲0.0641.70 ▼4.66
Posts /wp-admin/edit.php3.20 ▲0.0940.92 ▼5.51
Add New Post /wp-admin/post-new.php5.51 ▲0.0890.22 ▼578.49
Media Library /wp-admin/upload.php3.06 ▲0.0534.97 ▲2.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Sign Pantograph Extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,724 ▲12815.86 ▼0.319.97 ▼0.7045.96 ▼1.98
Dashboard /wp-admin2,990 ▲565.92 ▼0.03153.46 ▲6.53108.94 ▼11.41
Posts /wp-admin/edit.php2,756 ▲172.72 ▲0.0165.14 ▼5.0188.69 ▼1.65
Add New Post /wp-admin/post-new.php1,811 ▲12816.86 ▼1.90447.85 ▲41.67134.80 ▲26.12
Media Library /wp-admin/upload.php1,824 ▲145.02 ▼0.02172.44 ▲18.32112.70 ▼2.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sign-pantograph-extension/react.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sign-pantograph-extension/script-react.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add an image for screenshot #1 (Login flow.)
Please take inspiration from this readme.txt

sign-pantograph-extension/index.php 92% from 13 tests

The main file in "Sign Pantograph Extension" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sign-pantograph-extension.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected899 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP32973350
SVG100350
JavaScript100971
JSON20066
HTML39037
CSS501125

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions27
▷ Named functions27100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
react-code/logo512.png22.38KB10.12KB▼ 54.77%
react-code/favicon.png16.07KB1.34KB▼ 91.66%
react-code/logo192.png8.38KB3.98KB▼ 52.50%