83% invoice-frontend-quip

Code Review | Quip Invoice Frontend Extension

WordPress plugin Quip Invoice Frontend Extension scored 83% from 54 tests.

About plugin

  • Plugin page: invoice-frontend-...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Sep 28, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Scriptonite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.62ms] Passed 4 tests

This is a short check of server-side resources used by Quip Invoice Frontend Extension
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.19 ▲2.01
Dashboard /wp-admin3.31 ▲0.0045.70 ▼2.31
Posts /wp-admin/edit.php3.36 ▲0.0044.03 ▲0.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.83 ▼10.33
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲2.71

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Quip Invoice Frontend Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.751.62 ▼0.0739.42 ▼2.66
Dashboard /wp-admin2,203 ▲115.83 ▲0.9096.55 ▼10.6238.89 ▼4.78
Posts /wp-admin/edit.php2,089 ▼02.14 ▲0.0235.66 ▼2.2532.73 ▲2.55
Add New Post /wp-admin/post-new.php1,528 ▼518.38 ▼4.75600.47 ▼46.3350.63 ▲1.10
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0293.89 ▼1.5241.81 ▼2.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/invoice-frontend-quip/frontend-quip.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: quip invoices, invoices frontend

invoice-frontend-quip/frontend-quip.php 77% from 13 tests

Analyzing the main PHP file in "Quip Invoice Frontend Extension" version 1...
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("invoice-frontend-quip.php" instead of "frontend-quip.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP135959

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin