89% wp-adsterra-dashboard

Code Review | WP Adsterra Dashboard

WordPress plugin WP Adsterra Dashboard scored89%from 54 tests.

About plugin

  • Plugin page: wp-adsterra-dashb...
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Aug 4, 2023
  • Number of updates: 13
  • Update frequency: every 95.8 days
  • Top authors: vluongo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /7,266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by WP Adsterra Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0944.74 ▼6.69
Dashboard /wp-admin3.18 ▼0.1632.19 ▼21.54
Posts /wp-admin/edit.php3.54 ▲0.1452.66 ▲0.07
Add New Post /wp-admin/post-new.php6.01 ▲0.0885.48 ▼17.26
Media Library /wp-admin/upload.php3.35 ▲0.0844.33 ▲5.93
Adsterra Settings /wp-admin/options-general.php?page=wp-adsterra-dashboard/index.php3.3236.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Adsterra Dashboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.11 ▼0.151.80 ▲0.0441.25 ▼0.17
Dashboard /wp-admin2,243 ▲665.42 ▼0.2289.32 ▼10.2840.90 ▼9.73
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0236.79 ▲1.5236.21 ▲1.66
Add New Post /wp-admin/post-new.php1,532 ▲623.24 ▼0.04684.70 ▲20.4159.93 ▲0.95
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.01101.75 ▼14.4545.74 ▼2.86
Adsterra Settings /wp-admin/options-general.php?page=wp-adsterra-dashboard/index.php8302.0223.0126.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Adsterra API Documentations Page), #2 (Settings Page), #3 (Widget)
Please take inspiration from this readme.txt

wp-adsterra-dashboard/index.php 92% from 13 tests

The main PHP file in "WP Adsterra Dashboard" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-adsterra-dashboard.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin467 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP211323411
CSS15236
JavaScript25620

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity23.00
▷ Minimum class complexity8.00
▷ Maximum class complexity38.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin