83% invoicesonline

Code Review | Invoices Online Integration

WordPress plugin Invoices Online Integration scored83%from 54 tests.

About plugin

  • Plugin page: invoicesonline
  • Plugin version: 4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2014
  • Latest release: Sep 7, 2023
  • Number of updates: 57
  • Update frequency: every 57.2 days
  • Top authors: InvoicesOnline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,259 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼8.86ms] Passed 4 tests

This is a short check of server-side resources used by Invoices Online Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2936.05 ▼9.23
Dashboard /wp-admin3.59 ▲0.2547.69 ▼12.42
Posts /wp-admin/edit.php3.71 ▲0.3547.93 ▲0.92
Add New Post /wp-admin/post-new.php6.19 ▲0.3180.10 ▼14.71
Media Library /wp-admin/upload.php3.52 ▲0.2935.74 ▲2.10

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Invoices Online Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.34 ▼1.043.64 ▲1.8338.48 ▼2.51
Dashboard /wp-admin2,227 ▲355.84 ▲0.94103.73 ▼14.0769.15 ▲28.55
Posts /wp-admin/edit.php2,127 ▲382.04 ▲0.0240.89 ▲2.6134.08 ▼2.43
Add New Post /wp-admin/post-new.php1,550 ▲1723.02 ▼0.01688.70 ▼63.1469.05 ▲10.72
Media Library /wp-admin/upload.php1,415 ▲244.21 ▲0.0398.93 ▲1.1562.24 ▲20.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/invoicesonline/index.php:13

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === invoicesonline === )
Please take inspiration from this readme.txt

invoicesonline/index.php 85% from 13 tests

The main PHP file in "Invoices Online Integration" ver. 4.8 adds more information about the plugin and also serves as the entry point for this 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 ("invoicesonline.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 288 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
Everything looks great! No dangerous files found in this plugin2,325 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33973262,325

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity108.00
▷ Minimum class complexity100.00
▷ Maximum class complexity116.00
Average method complexity4.96
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods54
▷ Static methods00.00%
▷ Public methods5092.59%
▷ Protected methods00.00%
▷ Private methods47.41%
Functions30
▷ Named functions30100.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
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/favicon-96x96.png7.47KB3.40KB▼ 54.44%
assets/images/logo.png19.50KB8.55KB▼ 56.13%
images/logo.png19.50KB8.55KB▼ 56.13%
images/favicon-16x16.png0.66KB0.34KB▼ 48.89%
images/favicon-32x32.png2.06KB1.56KB▼ 24.19%