84% ad-maven

Code Review | The Official Ad-Maven Plugin for Wordpress

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

About plugin

  • Plugin page: ad-maven
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 2, 2017
  • Latest release: Sep 21, 2023
  • Number of updates: 28
  • Update frequency: every 81.4 days
  • Top authors: arieladmaven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by The Official Ad-Maven Plugin for Wordpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.50 ▼1.27
Dashboard /wp-admin3.31 ▲0.0146.34 ▼1.48
Posts /wp-admin/edit.php3.37 ▲0.0144.62 ▲0.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.68 ▼13.03
Media Library /wp-admin/upload.php3.24 ▲0.0134.85 ▼0.24

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for The Official Ad-Maven Plugin for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.24 ▼1.322.05 ▲0.3745.45 ▲5.72
Dashboard /wp-admin2,222 ▲394.85 ▼0.05104.76 ▼0.7642.09 ▼3.61
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0133.74 ▼2.1033.85 ▲0.47
Add New Post /wp-admin/post-new.php1,550 ▲1723.06 ▼0.16653.23 ▲0.9951.21 ▼0.60
Media Library /wp-admin/upload.php1,404 ▲194.21 ▼0.0292.46 ▼12.4140.91 ▼5.47

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

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

The main PHP script in "The Official Ad-Maven Plugin for Wordpress" version 1.4.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected142 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11541112
Markdown115030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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

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