94% addonsuite-for-wpadverts

Code Review | AddonSuite - for WPAdverts

WordPress plugin AddonSuite - for WPAdverts scored 94% from 54 tests.

About plugin

  • Plugin page: addonsuite-for-wp...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 5.9.2
  • First release: Oct 13, 2018
  • Latest release: Feb 1, 2020
  • Number of updates: 117
  • Update frequency: every 4.1 days
  • Top authors: wpextendnet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 6,577 total downloads

Benchmarks

Plugin footprint Passed 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: ▼294.73ms] Passed 4 tests

An overview of server-side resources used by AddonSuite - for WPAdverts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.84 ▼1.06
Dashboard /wp-admin3.41 ▲0.0032.66 ▼1.48
Posts /wp-admin/edit.php3.64 ▲0.0038.92 ▲1.16
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.76 ▼1,176.85
Media Library /wp-admin/upload.php3.30 ▲0.0025.72 ▲0.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AddonSuite - for WPAdverts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲7615.78 ▼0.136.44 ▲0.404.17 ▲2.01
Dashboard /wp-admin2,918 ▲606.21 ▼0.08117.75 ▼16.40158.10 ▼9.40
Posts /wp-admin/edit.php2,708 ▲143.23 ▼0.0163.93 ▼1.95141.39 ▼2.46
Add New Post /wp-admin/post-new.php1,773 ▲11217.67 ▼4.54425.08 ▲9.31158.14 ▲5.50
Media Library /wp-admin/upload.php1,721 ▲205.50 ▲0.00142.96 ▼0.98192.17 ▲6.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-scripts.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-functions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-admin-extendedoptions.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addonsuite-for-wpadverts/includes/plugin-admin.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
Please take inspiration from this readme.txt

addonsuite-for-wpadverts/addonsuite-for-wpadverts.php Passed 13 tests

The main file in "AddonSuite - for WPAdverts" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
91 characters long description:
Extend your WPAdverts classifieds page with new features and options in less than a minute.

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 plugin1,250 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6188136867
PO File16984270
CSS2211113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions55
▷ Named functions5498.18%
▷ Anonymous functions11.82%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.46MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-1024x1024.png235.60KB61.54KB▼ 73.88%
assets/img/icon-256x256.png55.44KB13.64KB▼ 75.40%
assets/img/logo.png1.45KB1.04KB▼ 28.24%
assets/img/icon-32x32.png5.09KB1.83KB▼ 64.11%
assets/img/head-icon-96x96.png9.44KB2.80KB▼ 70.38%