84% acquire

Code Review | Acquire

WordPress plugin Acquire scored84%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: 6.3.1
  • 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

10+ active /1,989 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.28ms] Passed 4 tests

This is a short check of server-side resources used by Acquire
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.66 ▼0.67
Dashboard /wp-admin3.33 ▲0.0357.45 ▲4.91
Posts /wp-admin/edit.php3.38 ▲0.0250.70 ▼0.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.03 ▼15.24
Media Library /wp-admin/upload.php3.25 ▲0.0237.96 ▲3.01

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Acquire
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.47 ▼0.281.86 ▲0.0142.89 ▼3.52
Dashboard /wp-admin2,205 ▲145.85 ▼0.06105.01 ▲1.2573.43 ▲32.91
Posts /wp-admin/edit.php2,106 ▲171.99 ▼0.0240.56 ▲0.8335.46 ▼0.84
Add New Post /wp-admin/post-new.php1,686 ▲16224.82 ▲1.61701.14 ▼2.2358.61 ▼12.11
Media Library /wp-admin/upload.php1,396 ▲84.17 ▼0.06103.62 ▼11.5165.31 ▲17.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/acquire/acquire.php:25

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 40 tag instead of maximum 10
The official readme.txt might help

acquire/acquire.php 92% from 13 tests

The main PHP script in "Acquire" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
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%