78% all-in-one-must-have

Code Review | All In One Must Have

WordPress plugin All In One Must Have scored78%from 54 tests.

About plugin

  • Plugin page: all-in-one-must-have
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Aug 16, 2017
  • Number of updates: 16
  • Update frequency: every 1.8 days
  • Top authors: minhlinh100 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,033 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▼5.48MB] [CPU: ▼1,029,734.94ms] Passed 4 tests

This is a short check of server-side resources used by All In One Must Have
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3447.51 ▲4.49
Dashboard /wp-admin3.71 ▼20.2465.20 ▼4,118,904.69
Posts /wp-admin/edit.php3.82 ▲0.4265.40 ▲13.45
Add New Post /wp-admin/post-new.php3.56 ▼2.3751.51 ▼53.00
Media Library /wp-admin/upload.php3.63 ▲0.3652.91 ▲16.05
AIOMH Settings /wp-admin/admin.php?page=all-in-one-must-have/index.php3.6443.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 24 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by All In One Must Have
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲7114.41 ▼0.241.41 ▼0.3443.14 ▲1.38
Dashboard /wp-admin2,239 ▲655.58 ▲0.0189.48 ▲5.6869.31 ▲24.80
Posts /wp-admin/edit.php2,159 ▲592.05 ▲0.0332.43 ▼5.5235.31 ▲2.24
Add New Post /wp-admin/post-new.php1,578 ▲5023.28 ▲2.20740.82 ▲55.6153.37 ▼3.42
Media Library /wp-admin/upload.php1,459 ▲564.25 ▲0.05102.89 ▲2.0080.58 ▲37.42
Website security /wp-admin/admin.php?page=all-in-one-must-have/index.php#security1,6751.7426.0043.07
Cache settings /wp-admin/admin.php?page=all-in-one-must-have/index.php#cache1,6751.7525.9637.29
Clean html /wp-admin/admin.php?page=all-in-one-must-have/index.php#cleanhtml1,6721.7426.0437.54
AIOMH Settings /wp-admin/admin.php?page=all-in-one-must-have/index.php1,6721.6626.0535.94

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
  • Zombie WordPress options detected upon uninstall: 24 options
    • aiomh_change_key_salt_value_time
    • widget_recent-posts
    • theysaidso_admin_options
    • aiomh_logged
    • db_upgraded
    • aiomh_remove_emoji
    • aiomh_post_views
    • aiomh_remove_menu_class_value
    • aiomh_cache_views
    • aiomh_disallow_file_mods
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=all-in-one-must-have/index.php
    • > Notice in wp-content/plugins/all-in-one-must-have/inc/change-prefix.php+339
    Undefined variable: aiomh_prefix_class
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=all-in-one-must-have/index.php
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=all-in-one-must-have/index.php
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% 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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/all-in-one-must-have/inc/change-prefix.php on line 203
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/all-in-one-must-have/inc/change-prefix.php:287
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-must-have/index.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/all-in-one-must-have/index.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 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
10 plugin tags: duplicates title, count views, defence, must have plugins, upload media...

all-in-one-must-have/index.php 85% from 13 tests

The main PHP file in "All In One Must Have" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("all-in-one-must-have.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 156 characters long)

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
No dangerous file extensions were detected1,684 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5895.08%
▷ Anonymous functions34.92%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings