67% aio-files-excluder

Code Review | Folder Excluder for AIO WP Migration

WordPress plugin Folder Excluder for AIO WP Migration scored67%from 54 tests.

About plugin

  • Plugin page: aio-files-excluder
  • Plugin version: 3.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Dec 20, 2018
  • Latest release: May 17, 2021
  • Number of updates: 11
  • Update frequency: every 80.0 days
  • Top authors: zeeshanx (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /23,846 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼34.38ms] Passed 4 tests

Analyzing server-side resources used by Folder Excluder for AIO WP Migration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.64 ▲5.44
Dashboard /wp-admin3.00 ▼0.3021.16 ▼25.90
Posts /wp-admin/edit.php3.00 ▼0.3524.64 ▼26.62
Add New Post /wp-admin/post-new.php3.00 ▼2.8820.14 ▼73.73
Media Library /wp-admin/upload.php3.00 ▼0.2221.63 ▼11.25
AIO WP Migration Folders Excluder /wp-admin/options-general.php?page=ai1excludes3.0121.71

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Folder Excluder for AIO WP Migration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.37 ▲0.021.63 ▼0.0638.37 ▼5.06
Dashboard /wp-admin2,201 ▲215.57 ▼0.2996.61 ▲7.9944.29 ▲3.78
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0239.12 ▼0.4235.31 ▼5.20
Add New Post /wp-admin/post-new.php1,540 ▲1418.55 ▼4.55665.39 ▲43.8560.94 ▲4.58
Media Library /wp-admin/upload.php1,409 ▲94.18 ▲0.0097.65 ▼3.1444.09 ▼0.79
AIO WP Migration Folders Excluder /wp-admin/options-general.php?page=ai1excludes8012.0327.9247.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ai1excludes
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aio-files-excluder/aio-files-exlcluder.php:20

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots lack descriptions #1, #2 in aio-files-excluder/assets to your readme.txt
The official readme.txt is a good inspiration

aio-files-excluder/aio-files-exlcluder.php 85% from 13 tests

"Folder Excluder for AIO WP Migration" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 289 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("aio-files-excluder.php" instead of "aio-files-exlcluder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS113079
PHP161853

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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 files were detected