73% website-article-monetization-by-magenet

Code Review | Website Article Monetization By MageNet

WordPress plugin Website Article Monetization By MageNet scored73%from 54 tests.

About plugin

  • Plugin page: website-article-m...
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 8, 2020
  • Latest release: Nov 1, 2021
  • Number of updates: 49
  • Update frequency: every 11.1 days
  • Top authors: MageNet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /67,069 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.94ms] Passed 4 tests

An overview of server-side resources used by Website Article Monetization By MageNet
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.81 ▲0.18
Dashboard /wp-admin3.32 ▲0.0250.05 ▼2.25
Posts /wp-admin/edit.php3.37 ▲0.0146.32 ▲3.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.39 ▼11.33
Media Library /wp-admin/upload.php3.24 ▲0.0134.10 ▲1.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 9 new options
New tables
wp_abp_posts
New WordPress options
abp_magenet_api_url
theysaidso_admin_options
abp_cp_host
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
abp_cache_time_const

Browser metrics Passed 4 tests

Website Article Monetization By MageNet: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6513.71 ▼0.571.85 ▲0.2945.13 ▲5.41
Dashboard /wp-admin2,228 ▲485.86 ▲0.2197.86 ▲10.3342.62 ▲4.80
Posts /wp-admin/edit.php2,142 ▲422.32 ▲0.3535.36 ▲0.6432.04 ▼3.22
Add New Post /wp-admin/post-new.php6,321 ▲4,79323.46 ▲0.21897.70 ▲226.4837.35 ▼20.41
Media Library /wp-admin/upload.php1,436 ▲424.43 ▲0.28101.20 ▲6.6244.36 ▼0.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_abp_posts
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-posts
    • abp_cache_time_const
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • abp_magenet_api_url
    • abp_cp_host
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/website-article-monetization-by-magenet/admin/abp-page.php
    • > /wp-content/plugins/website-article-monetization-by-magenet/article-backlinks.php
    • > /wp-content/plugins/website-article-monetization-by-magenet/abp-functions.php
    • > /wp-content/plugins/website-article-monetization-by-magenet/admin/article-backlinks-admin.php
    • > /wp-content/plugins/website-article-monetization-by-magenet/admin/popup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

website-article-monetization-by-magenet/article-backlinks.php 85% from 13 tests

The main PHP file in "Website Article Monetization By MageNet" ver. 1.0.11 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("website-article-monetization-by-magenet.php" instead of "article-backlinks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected860 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP511912714
CSS116087
JavaScript113059

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin