72% maxtarget

Code Review | MaxTarget

WordPress plugin MaxTarget scored 72% from 54 tests.

About plugin

  • Plugin page: maxtarget
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.3
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Nov 15, 2017
  • Number of updates: 5
  • Update frequency: every 30.8 days
  • Top authors: maxtarget (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 996 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.07ms] Passed 4 tests

Server-side resources used by MaxTarget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.08 ▼13.55
Dashboard /wp-admin3.37 ▲0.0644.88 ▼2.90
Posts /wp-admin/edit.php3.48 ▲0.1247.92 ▲0.16
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.30 ▲2.28
Media Library /wp-admin/upload.php3.29 ▲0.0636.24 ▲0.02
MaxTarget /wp-admin/options-general.php?page=maxtarget_settings3.2331.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
maxtarget_options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for MaxTarget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.47 ▼0.171.79 ▼0.0441.50 ▲4.04
Dashboard /wp-admin2,228 ▲405.86 ▲0.97111.27 ▼7.1239.28 ▼7.73
Posts /wp-admin/edit.php2,114 ▲252.00 ▼0.0540.11 ▼1.6836.02 ▼3.57
Add New Post /wp-admin/post-new.php1,546 ▲1723.08 ▼0.12609.54 ▼54.7447.79 ▼5.13
Media Library /wp-admin/upload.php1,410 ▲224.22 ▲0.0397.03 ▼6.8743.59 ▲1.57
MaxTarget /wp-admin/options-general.php?page=maxtarget_settings9491.7228.0938.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% 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
    • > GET request to /wp-admin/options-general.php?page=maxtarget_settings
    • > Notice in wp-content/plugins/maxtarget/maxtarget_options.php+105
    Undefined variable: ms_checked
    • > GET request to /wp-admin/options-general.php?page=maxtarget_settings
    • > Notice in wp-content/plugins/maxtarget/maxtarget_options.php+119
    Undefined variable: debug_checked
    • > GET request to /wp-admin/options-general.php?page=maxtarget_settings
    • > Notice in wp-content/plugins/maxtarget/maxtarget_options.php+134
    Undefined variable: fc_checked

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/maxtarget/maxtarget_api.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/maxtarget/maxtarget_options.php:280
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/maxtarget/maxtarget_options.php:280

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please add at least on tag
You can take inspiration from this readme.txt

maxtarget/maxtarget.php 92% from 13 tests

The main file in "MaxTarget" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 493 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin984 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP421115955
CSS12019
SVG11010

PHP code Passed 2 tests

An overview 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.36
Average class complexity10.15
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods62100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin