94% ad-maven

Code Review | The Official Ad-Maven Plugin for Wordpress

WordPress plugin The Official Ad-Maven Plugin for Wordpress scored 94% from 54 tests.

About plugin

  • Plugin page: ad-maven
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jul 2, 2017
  • Latest release: Dec 20, 2020
  • Number of updates: 21
  • Update frequency: every 60.6 days
  • Top authors: arieladmaven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,200 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.13ms] Passed 4 tests

Analyzing server-side resources used by The Official Ad-Maven Plugin for Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.26 ▲2.35
Dashboard /wp-admin3.43 ▲0.0237.00 ▼1.05
Posts /wp-admin/edit.php3.65 ▲0.0143.10 ▲2.32
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.70 ▼1,169.39
Media Library /wp-admin/upload.php3.30 ▲0.0127.14 ▼0.41

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for The Official Ad-Maven Plugin for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,827 ▲8316.68 ▲0.786.03 ▲0.172.24 ▲0.08
Dashboard /wp-admin2,924 ▲376.30 ▼0.20130.73 ▼8.23155.39 ▼9.05
Posts /wp-admin/edit.php2,711 ▲233.43 ▼0.0062.85 ▼0.30136.16 ▼7.10
Add New Post /wp-admin/post-new.php1,771 ▲5422.53 ▼0.48447.37 ▲42.99159.40 ▼1.70
Media Library /wp-admin/upload.php1,718 ▲205.70 ▼0.03139.88 ▼1.47188.96 ▲2.92

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
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ad-maven/the-official-ad-maven-plugin-for-wordpress.php:123

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

ad-maven/the-official-ad-maven-plugin-for-wordpress.php 92% from 13 tests

This is the main PHP file of "The Official Ad-Maven Plugin for Wordpress" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ad-maven.php" instead of "the-official-ad-maven-plugin-for-wordpress.php")

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
Good job! No executable or dangerous file extensions detected139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11541112
Markdown112027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were 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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected