78% adspirit

Code Review | AdSpirit AdServer Banner Manager

WordPress plugin AdSpirit AdServer Banner Manager scored 78% from 54 tests.

About plugin

  • Plugin page: adspirit
  • Plugin version: 4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.2
  • WordPress version: 5.9.2
  • First release: May 2, 2017
  • Latest release: Feb 22, 2021
  • Number of updates: 7
  • Update frequency: every 201.6 days
  • Top authors: adspirit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 824 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼314.25ms] Passed 4 tests

Analyzing server-side resources used by AdSpirit AdServer Banner Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1760.78 ▼8.64
Dashboard /wp-admin3.52 ▲0.1136.10 ▼0.35
Posts /wp-admin/edit.php3.74 ▲0.1041.92 ▼5.05
Add New Post /wp-admin/post-new.php6.98 ▲0.0197.41 ▼1,242.34
Media Library /wp-admin/upload.php3.39 ▲0.1025.42 ▼0.97
Adspirit /wp-admin/options-general.php?page=adspirit_banner_list3.3625.95
Update /wp-admin/admin.php?page=adspirit_banner_update3.3923.91

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 3 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for AdSpirit AdServer Banner Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,775 ▲3315.66 ▲0.495.71 ▼2.142.02 ▼0.13
Dashboard /wp-admin2,879 ▲186.12 ▼0.05163.84 ▲23.49173.31 ▲10.07
Posts /wp-admin/edit.php2,693 ▲363.22 ▼0.0164.85 ▲0.14194.37 ▲52.75
Add New Post /wp-admin/post-new.php1,693 ▲3221.49 ▲4.90438.45 ▲20.08161.12 ▼14.19
Media Library /wp-admin/upload.php1,700 ▲25.52 ▲0.01178.14 ▲37.39190.98 ▼40.23
Adspirit /wp-admin/options-general.php?page=adspirit_banner_list1,0302.4153.78101.07
Update /wp-admin/admin.php?page=adspirit_banner_update1,3142.3855.6597.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • widget_adspirit-widget
    • adspirit_db_version
    • adspirit_table_name

Smoke tests 50% 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)
Good news, no errors were detected

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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adspirit/views/bannerList.php
    • > /wp-content/plugins/adspirit/views/bannerUpdate.php
    • > /wp-content/plugins/adspirit/adspirit.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adspirit/AdspiritWidget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: asynchronous, adserver, banner, google adsense, advertising...

adspirit/adspirit.php 92% from 13 tests

The entry point to "AdSpirit AdServer Banner Manager" version 4.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 518 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,027 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.50
▷ Minimum class complexity8.00
▷ Maximum class complexity18.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods1930.16%
▷ Public methods6196.83%
▷ Protected methods00.00%
▷ Private methods23.17%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin