94% acquire

Code Review | Acquire

WordPress plugin Acquire scored 94% from 54 tests.

About plugin

  • Plugin page: acquire
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-5.2.2
  • WordPress version: 5.9.2
  • First release: May 30, 2018
  • Latest release: Oct 14, 2019
  • Number of updates: 41
  • Update frequency: every 12.2 days
  • Top authors: acquireio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,645 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼294.43ms] Passed 4 tests

An overview of server-side resources used by Acquire
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0355.55 ▲5.46
Dashboard /wp-admin3.44 ▲0.0231.51 ▼1.08
Posts /wp-admin/edit.php3.67 ▲0.0236.94 ▲1.15
Add New Post /wp-admin/post-new.php6.91 ▼0.0795.14 ▼1,183.24
Media Library /wp-admin/upload.php3.32 ▲0.0230.40 ▲6.62

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Acquire
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲3415.80 ▲0.026.23 ▼0.072.16 ▼0.54
Dashboard /wp-admin2,902 ▲416.17 ▼0.00115.26 ▼26.33180.38 ▲16.22
Posts /wp-admin/edit.php2,687 ▼43.12 ▼0.1264.45 ▼1.06142.60 ▼2.05
Add New Post /wp-admin/post-new.php1,699 ▲921.38 ▲0.69476.07 ▲41.53212.28 ▲56.55
Media Library /wp-admin/upload.php1,711 ▲195.54 ▲0.05152.63 ▲9.18208.63 ▲15.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acquire/acquire.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 40 tag instead of maximum 10
The official readme.txt is a good inspiration

acquire/acquire.php 92% from 13 tests

"Acquire" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1610137
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
images/acquire.png2.13KB0.47KB▼ 77.96%