84% aoc-multiple-post-images

Code Review | AOC Multiple Post Images

WordPress plugin AOC Multiple Post Images scored84%from 54 tests.

About plugin

  • Plugin page: aoc-multiple-post...
  • Plugin version: 0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: May 16, 2018
  • Latest release: Sep 4, 2019
  • Number of updates: 10
  • Update frequency: every 47.7 days
  • Top authors: ankittiwaari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼17.25ms] Passed 4 tests

Analyzing server-side resources used by AOC Multiple Post Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0147.14 ▲5.41
Dashboard /wp-admin3.34 ▲0.0352.72 ▼1.15
Posts /wp-admin/edit.php3.46 ▲0.1055.45 ▲1.62
Add New Post /wp-admin/post-new.php3.11 ▼2.7836.43 ▼68.25
Media Library /wp-admin/upload.php3.24 ▲0.0137.41 ▼1.23

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for AOC Multiple Post Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲23114.60 ▲0.311.82 ▲0.0843.87 ▼6.05
Dashboard /wp-admin2,350 ▲1596.47 ▲0.65130.54 ▲9.4140.25 ▼1.04
Posts /wp-admin/edit.php2,253 ▲1643.40 ▲1.4050.59 ▲11.0734.33 ▼2.64
Add New Post /wp-admin/post-new.php6,208 ▲4,66625.17 ▲2.01915.56 ▲263.9536.09 ▼37.39
Media Library /wp-admin/upload.php1,392 ▲14.07 ▼0.1197.66 ▼19.4143.60 ▼1.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aoc-multiple-post-images/aoc-multiple-post-images.php:16

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

aoc-multiple-post-images/aoc-multiple-post-images.php Passed 13 tests

The entry point to "AOC Multiple Post Images" version 0.4 is a PHP file that has certain tags in its header comment area
60 characters long description:
This plugin allows you to upload multiple images for a post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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 functions5100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png3.04KB1.32KB▼ 56.44%