83% rexadz-monetization

Code Review | REXADZ Monetization

WordPress plugin REXADZ Monetization scored83%from 54 tests.

About plugin

  • Plugin page: rexadz-monetization
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2016
  • Latest release: Nov 23, 2016
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: rexdirectnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by REXADZ Monetization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0260.07 ▲15.66
Dashboard /wp-admin3.32 ▲0.0295.83 ▲34.76
Posts /wp-admin/edit.php3.37 ▲0.0153.44 ▼7.26
Add New Post /wp-admin/post-new.php5.90 ▲0.01190.36 ▲80.92
Media Library /wp-admin/upload.php3.24 ▲0.0153.04 ▼4.49
REXADZ Code /wp-admin/options-general.php?page=rcp3.2542.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables
wp_rcp_options
wp_rcp_data
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for REXADZ Monetization
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.46 ▲0.321.93 ▼0.24138.80 ▲83.99
Dashboard /wp-admin2,197 ▲94.90 ▼0.13174.40 ▲40.9684.23 ▲27.98
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0345.23 ▼6.3977.13 ▲33.43
Add New Post /wp-admin/post-new.php1,400 ▼11917.83 ▼4.60806.44 ▼31.3184.64 ▲15.37
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.07130.27 ▼14.21110.23 ▲27.69
REXADZ Code /wp-admin/options-general.php?page=rcp9272.0244.7434.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 13× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/rexadz-monetization/inc/actions/add.php
    • > /wp-content/plugins/rexadz-monetization/inc/error.php
    • > /wp-content/plugins/rexadz-monetization/inc/classes/class-rcp-table.php
    • > /wp-content/plugins/rexadz-monetization/inc/page.php
    • > /wp-content/plugins/rexadz-monetization/inc/uninstall.php
    • > /wp-content/plugins/rexadz-monetization/inc/actions/alignment.php
    • > /wp-content/plugins/rexadz-monetization/rexadz-code-placement.php
    • > /wp-content/plugins/rexadz-monetization/inc/install.php
    • > /wp-content/plugins/rexadz-monetization/inc/classes/class-rcp-tables.php
    • > /wp-content/plugins/rexadz-monetization/inc/functions.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Backend Code Generation Page) image not found
The official readme.txt is a good inspiration

rexadz-monetization/rexadz-code-placement.php 85% from 13 tests

"REXADZ Monetization" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rexadz-monetization.php" instead of "rexadz-code-placement.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,070 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP142384631,070

PHP code Passed 2 tests

This is a short overview 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.32
Average class complexity46.00
▷ Minimum class complexity7.00
▷ Maximum class complexity85.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/left.png1.08KB0.19KB▼ 82.81%
img/center.png1.09KB0.20KB▼ 81.97%
img/edit.png1.62KB1.02KB▼ 37.06%
img/red.png0.45KB0.29KB▼ 34.86%
img/none.png0.87KB0.91KB0.00%