84% icaal-quoting-engine

Code Review | ICAAL Quoting Engine

WordPress plugin ICAAL Quoting Engine scored84%from 54 tests.

About plugin

  • Plugin page: icaal-quoting-engine
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Jan 10, 2017
  • Number of updates: 22
  • Update frequency: every 7.4 days
  • Top authors: ashdotguru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,053 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.59ms] Passed 4 tests

This is a short check of server-side resources used by ICAAL Quoting Engine
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.37 ▼7.49
Dashboard /wp-admin3.35 ▲0.0556.10 ▲2.09
Posts /wp-admin/edit.php3.46 ▲0.1151.94 ▼6.82
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.69 ▼6.13
Media Library /wp-admin/upload.php3.27 ▲0.0537.38 ▲3.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ICAAL Quoting Engine
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲13613.79 ▼0.3810.74 ▲8.3938.42 ▼5.88
Dashboard /wp-admin2,202 ▲255.60 ▼0.0885.62 ▼16.6538.46 ▼5.98
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0239.54 ▲1.8936.57 ▲3.00
Add New Post /wp-admin/post-new.php1,530 ▲423.07 ▼0.42617.93 ▼82.6862.91 ▲4.33
Media Library /wp-admin/upload.php1,395 ▼84.16 ▲0.01100.00 ▼5.4943.37 ▼7.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/icaal-quoting-engine/admin/partials/icaal-quoting-engine-admin-display.php
    • > /wp-content/plugins/icaal-quoting-engine/public/partials/modal.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: icaal quoting engine, quoting engine, icaal, double glazing quote, internet consultants and associates

icaal-quoting-engine/icaal-quoting-engine.php Passed 13 tests

Analyzing the main PHP file in "ICAAL Quoting Engine" version 1.1.0
47 characters long description:
Embed the ICAAL Quoting Engine within your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin972 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript714092540
Sass83650211
PHP12118519174
Markdown130046
CSS2051

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
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