83% make-money-with-ad7biz-and-wp

Code Review | Make Money with Ad7.biz and WP

WordPress plugin Make Money with Ad7.biz and WP scored 83% from 54 tests.

About plugin

  • Plugin page: make-money-with-a...
  • Plugin version: 1.1 Stable...
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2012
  • Latest release: Nov 25, 2012
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ad7_biz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.08ms] Passed 4 tests

An overview of server-side resources used by Make Money with Ad7.biz and WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.45 ▼5.05
Dashboard /wp-admin3.34 ▲0.0444.32 ▼4.86
Posts /wp-admin/edit.php3.39 ▲0.0443.60 ▼2.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.46 ▼12.14
Media Library /wp-admin/upload.php3.26 ▲0.0438.15 ▲6.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Make Money with Ad7.biz and WP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.57 ▼0.811.76 ▼0.0845.22 ▲1.31
Dashboard /wp-admin2,221 ▲295.83 ▲0.86108.74 ▼0.5570.83 ▲26.81
Posts /wp-admin/edit.php2,110 ▲211.97 ▼0.0339.57 ▲2.9134.55 ▲1.57
Add New Post /wp-admin/post-new.php1,680 ▲15822.24 ▼0.92672.21 ▲30.1347.45 ▼8.71
Media Library /wp-admin/upload.php1,397 ▲64.24 ▲0.0399.55 ▲0.8874.91 ▲31.38

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/make-money-with-ad7biz-and-wp/ad7.biz.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === make-money-with-ad7biz-and-wp === )
  • Screenshots: Please add images for these screenshots: #3 (The Plugin settings page), #2 (Screen get the user ID - Ad7.biz)
  • Tags: Please delete some tags, you are using 31 tag instead of maximum 10
You can take inspiration from this readme.txt

make-money-with-ad7biz-and-wp/ad7.biz.php 77% from 13 tests

The main PHP script in "Make Money with Ad7.biz and WP" version 1.1 Stable... is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("make-money-with-ad7biz-and-wp.php" instead of "ad7.biz.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.1 Stable...")
  • Description: The description should be shorter than 140 characters (currently 751 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 plugin153 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11932153

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
6 PNG files occupy 0.42MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png78.08KB24.10KB▼ 69.14%
images/wp_ad7_biz_banner.png62.32KB21.97KB▼ 64.74%
images/wp_ad7_biz_start_now.png9.29KB3.22KB▼ 65.34%
screenshot-1.png98.89KB29.05KB▼ 70.62%
images/wp_ad7_biz_screen_plugin.png98.89KB29.05KB▼ 70.62%