88% contasimple

Code Review | Contasimple

WordPress plugin Contasimple scored 88% from 54 tests.

About plugin

  • Plugin page: contasimple
  • Plugin version: 1.12.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7.0
  • WordPress version: 5.8.1
  • First release: Nov 23, 2018
  • Latest release: Sep 2, 2021
  • Number of updates: 35
  • Update frequency: every 29.0 days
  • Top authors: contasimple (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active / 2,967 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.20MB] [CPU: ▼138.65ms] Passed 4 tests

Analyzing server-side resources used by Contasimple
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲1.2944.93 ▲21.31
Dashboard /wp-admin4.30 ▲1.2451.10 ▲0.93
Posts /wp-admin/edit.php4.35 ▲1.2453.77 ▲3.44
Add New Post /wp-admin/post-new.php6.59 ▲1.16101.49 ▼562.34
Media Library /wp-admin/upload.php4.18 ▲1.1840.44 ▲3.37

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 231 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Contasimple
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,707 ▲11115.83 ▲0.2410.70 ▲1.5750.61 ▲1.77
Dashboard /wp-admin2,971 ▲405.84 ▼0.27138.85 ▼2.97111.56 ▼18.47
Posts /wp-admin/edit.php2,743 ▲42.69 ▼0.0171.68 ▼0.3697.87 ▲2.64
Add New Post /wp-admin/post-new.php1,686 ▲318.33 ▼0.12396.02 ▼1.78113.79 ▲6.10
Media Library /wp-admin/upload.php1,814 ▲45.02 ▲0.00158.95 ▼0.96117.67 ▼12.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/contasimple/public/partials/plugin-name-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Cannot use 'Object' as class name as it is reserved in wp-content/plugins/contasimple/lib/Model/Object.php on line 56
    • > PHP Fatal error
      Uncaught Error: Class 'Contasimple\\Swagger\\Client\\Configuration' not found in wp-content/plugins/contasimple/includes/common/CSConfig.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

contasimple/contasimple.php Passed 13 tests

The primary PHP file in "Contasimple" version 1.12.0 is used by WordPress to initiate all plugin functionality
76 characters long description:
This plugin allows you to generate invoices for all your WooCommerce orders.

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
No dangerous file extensions were detected48,122 lines of code in 213 files:
LanguageFilesBlank linesComment linesLines of code
PO File12603231,010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.54
▷ Minimum class complexity1.00
▷ Maximum class complexity426.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes184100.00%
▷ Final classes00.00%
▷ Static methods55115.30%
▷ Public methods3,57499.25%
▷ Protected methods100.28%
▷ Private methods170.47%
▷ Named functions872.73%
▷ Anonymous functions327.27%
▷ Global constants136.84%
▷ Class constants17793.16%
▷ Public constants177100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin