78% simple-noai-and-noimageai

Code Review | Simple NoAI and NoImageAI

WordPress plugin Simple NoAI and NoImageAI scored78%from 54 tests.

About plugin

  • Plugin page: simple-noai-and-n...
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 14
  • Update frequency: every 26.1 days
  • Top authors: the9mm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /424 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.56ms] Passed 4 tests

A check of server-side resources used by Simple NoAI and NoImageAI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.84 ▼3.25
Dashboard /wp-admin3.39 ▲0.0847.22 ▲0.08
Posts /wp-admin/edit.php3.44 ▲0.0847.57 ▲0.19
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.77 ▼6.20
Media Library /wp-admin/upload.php3.31 ▲0.0832.51 ▼0.87
Simple NoAI Options /wp-admin/options-general.php?page=noai3.2832.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple NoAI and NoImageAI
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5814.31 ▼0.052.06 ▲0.4044.75 ▼0.18
Dashboard /wp-admin2,196 ▲165.63 ▼0.0191.31 ▲4.2240.62 ▼7.35
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0139.82 ▼2.0235.99 ▼2.34
Add New Post /wp-admin/post-new.php1,529 ▲323.21 ▲0.12594.55 ▼88.0479.59 ▲30.67
Media Library /wp-admin/upload.php1,398 ▲14.21 ▼0.0296.22 ▼9.0142.55 ▼3.54
Simple NoAI Options /wp-admin/options-general.php?page=noai9212.1621.9729.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-noai-and-noimageai/._index.php
    • > /wp-content/plugins/simple-noai-and-noimageai/noai.php
    • > /wp-content/plugins/simple-noai-and-noimageai/includes/._noai-settings.php
    • > /wp-content/plugins/simple-noai-and-noimageai/._noai.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-noai-and-noimageai/includes/noai-settings.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: noai, noimageai

simple-noai-and-noimageai/noai.php 77% from 13 tests

"Simple NoAI and NoImageAI" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 235 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-noai-and-noimageai.php" instead of "noai.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 plugin338 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38176338

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions14
▷ Named functions14100.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