84% wp-ai-manager

Code Review | WP AI Manager

WordPress plugin WP AI Manager scored 84% from 54 tests.

About plugin

  • Plugin page: wp-ai-manager
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-3.0.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2019
  • Latest release: Apr 5, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: michuxd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 461 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.43ms] Passed 4 tests

Server-side resources used by WP AI Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.92 ▼2.18
Dashboard /wp-admin3.33 ▲0.0345.83 ▼5.22
Posts /wp-admin/edit.php3.38 ▲0.0350.37 ▼1.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.66 ▼17.09
Media Library /wp-admin/upload.php3.25 ▲0.0334.91 ▼1.20
Speed Up /wp-admin/admin.php?page=wp-ai-manager-speed_up3.2633.34
Reports /wp-admin/admin.php?page=wp-ai-manager3.2430.51
Tracking /wp-admin/admin.php?page=wp-ai-manager-tracking3.2633.36

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • Illegal file modification detected: 1 file (5.79KB) outside of "wp-content/plugins/wp-ai-manager/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP AI Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲15313.61 ▼0.775.44 ▲3.1541.05 ▼5.76
Dashboard /wp-admin2,235 ▲474.99 ▼0.06102.48 ▼15.6039.86 ▼8.07
Posts /wp-admin/edit.php2,118 ▲292.06 ▲0.0039.17 ▲3.1035.08 ▲3.23
Add New Post /wp-admin/post-new.php1,552 ▲3223.39 ▼0.02673.81 ▲30.7955.59 ▲2.07
Media Library /wp-admin/upload.php1,411 ▲234.22 ▲0.0795.65 ▼3.0541.77 ▼3.36
Speed Up /wp-admin/admin.php?page=wp-ai-manager-speed_up8212.0425.1727.47
Reports /wp-admin/admin.php?page=wp-ai-manager7832.0523.2622.14
Tracking /wp-admin/admin.php?page=wp-ai-manager-tracking8451.6925.7426.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-ai-manager/admin/partials/wp-ai-manager-speed-up.php
    • > /wp-content/plugins/wp-ai-manager/includes/3rd-party/wp-rocket-htaccess.php
    • > /wp-content/plugins/wp-ai-manager/admin/partials/wp-ai-manager-tracking.php
    • > /wp-content/plugins/wp-ai-manager/admin/partials/wp-ai-manager-general.php
    • > /wp-content/plugins/wp-ai-manager/WP_AI_Manager.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: ai, wp manager

wp-ai-manager/WP_AI_Manager.php 92% from 13 tests

The main PHP script in "WP AI Manager" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-ai-manager.php" instead of "WP_AI_Manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin618 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15128782583
PO File11118
JavaScript32017
CSS1100

PHP code Passed 2 tests

This is a very shot 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.16
Average class complexity2.38
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods516.13%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin