84% aitrillion

Code Review | AiTrillion

WordPress plugin AiTrillion scored84%from 54 tests.

About plugin

  • Plugin page: aitrillion
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Oct 13, 2023
  • Number of updates: 39
  • Update frequency: every 7.2 days
  • Top authors: aitrillion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.75ms] Passed 4 tests

Analyzing server-side resources used by AiTrillion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0448.29 ▲7.35
Dashboard /wp-admin3.35 ▼0.0046.96 ▼11.77
Posts /wp-admin/edit.php3.40 ▲0.0445.66 ▼0.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.32 ▼11.19
Media Library /wp-admin/upload.php3.27 ▲0.0433.37 ▲0.81

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

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

Browser metrics Passed 4 tests

Checking browser requirements for AiTrillion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.66 ▼0.111.81 ▲0.2244.51 ▲4.63
Dashboard /wp-admin2,213 ▲385.64 ▲0.0485.13 ▼14.7637.55 ▼5.14
Posts /wp-admin/edit.php2,115 ▲152.00 ▲0.0535.57 ▲0.4335.97 ▼0.29
Add New Post /wp-admin/post-new.php1,536 ▼023.15 ▲5.12582.54 ▼15.9847.77 ▼31.77
Media Library /wp-admin/upload.php1,415 ▲124.24 ▼0.0296.25 ▼0.0240.64 ▼1.72

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aitrillion/platform_api.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aitrillion/data_sync.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/aitrillion/cron-jobs.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aitrillion/shortcodes.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (AiTrillion aitrillion-banner.png.)
Please take inspiration from this readme.txt

aitrillion/aitrillion.php Passed 13 tests

The main PHP script in "AiTrillion" version 1.0.7 is automatically included on every request by WordPress
100 characters long description:
Exclusive Loyalty Program with Email Marketing, SMS, Push, Product Reviews, Membership & 11+ feature

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
Success! There were no dangerous files found in this plugin2,514 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP61,1965732,508
JavaScript1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions103
▷ Named functions10299.03%
▷ Anonymous functions10.97%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin