84% abundatrade-plugin

Code Review | Abundatrade Plugin

WordPress plugin Abundatrade Plugin scored84%from 54 tests.

About plugin

  • Plugin page: abundatrade-plugin
  • Plugin version: 1.8.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Oct 24, 2012
  • Latest release: Mar 15, 2013
  • Number of updates: 37
  • Update frequency: every 3.8 days
  • Top authors: withinboredom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,923 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
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.96ms] Passed 4 tests

A check of server-side resources used by Abundatrade Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1131.00 ▼15.04
Dashboard /wp-admin3.45 ▲0.1455.16 ▼0.46
Posts /wp-admin/edit.php3.56 ▲0.2048.09 ▼1.24
Add New Post /wp-admin/post-new.php6.03 ▲0.1495.35 ▲3.80
Media Library /wp-admin/upload.php3.37 ▲0.1439.95 ▲0.92
Abundatrade /wp-admin/options-general.php?page=abundatrade3.3434.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Abundatrade Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.42 ▼0.9313.21 ▲11.2345.02 ▼2.77
Dashboard /wp-admin2,201 ▲275.67 ▲0.0089.26 ▼10.9540.52 ▼4.25
Posts /wp-admin/edit.php2,106 ▲61.99 ▼0.0137.38 ▼1.6437.06 ▲2.16
Add New Post /wp-admin/post-new.php1,531 ▲522.88 ▼0.76617.70 ▼106.4951.97 ▲0.46
Media Library /wp-admin/upload.php1,406 ▲64.22 ▲0.0295.78 ▼18.0041.72 ▼8.12
Abundatrade /wp-admin/options-general.php?page=abundatrade9211.8324.9035.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • skel_abundatrade_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=abundatrade
    • > Notice in wp-content/plugins/abundatrade-plugin/tabs/settings_withinboredom.php+95
    Undefined variable: start

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: affiliate, post, cash, abundatrade, cds...

abundatrade-plugin/abundatrade_pugin.php 92% from 13 tests

The primary PHP file in "Abundatrade Plugin" version 1.8.02 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("abundatrade-plugin.php" instead of "abundatrade_pugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,085 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.17
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods38.33%
▷ Public methods3391.67%
▷ Protected methods00.00%
▷ Private methods38.33%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icons32.png54.58KB1.58KB▼ 97.10%