83% magnifinance-invoice-system

Code Review | MagniFinance Invoice System

WordPress plugin MagniFinance Invoice System scored83%from 54 tests.

About plugin

  • Plugin page: magnifinance-invo...
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: Jun 27, 2018
  • Number of updates: 29
  • Update frequency: every 26.6 days
  • Top authors: webds (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,237 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼2.80ms] Passed 4 tests

Server-side resources used by MagniFinance Invoice System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.04 ▲3.11
Dashboard /wp-admin3.36 ▲0.0644.62 ▼0.35
Posts /wp-admin/edit.php3.48 ▲0.1250.73 ▲6.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.44 ▼14.71
Media Library /wp-admin/upload.php3.29 ▲0.0636.19 ▲0.74

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

MagniFinance Invoice System: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.31 ▼1.072.03 ▲0.2144.24 ▲0.28
Dashboard /wp-admin2,209 ▲215.84 ▲0.97106.15 ▼0.6742.62 ▲0.34
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0440.04 ▲0.5935.79 ▼3.01
Add New Post /wp-admin/post-new.php1,514 ▼1817.45 ▼5.86655.52 ▼1.9156.56 ▼8.09
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0495.86 ▼9.1642.30 ▼1.66

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.wsdl.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.xmlschema.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.soap_val.php:17
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/magnifinance-invoice-system/lib/nusoap/class.soap_server.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 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
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Back-office settings page)
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Please describe screenshot #0 in magnifinance-invoice-system/assets to your readme.txt
You can look at the official readme.txt

magnifinance-invoice-system/magnifinance-invoice-system.php 92% from 13 tests

The main file in "MagniFinance Invoice System" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,733 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP141,0125,13311,597
PO File1273280
JavaScript13050
CSS1006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity75.44
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity8.55
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes00.00%
Methods355
▷ Static methods00.00%
▷ Public methods355100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin