89% wp-adf-ly-dashboard-and-integration

Code Review | WP Adf.ly Dashboard and Integration

WordPress plugin WP Adf.ly Dashboard and Integration scored89%from 54 tests.

About plugin

  • Plugin page: wp-adf-ly-dashboa...
  • Plugin version: 1.3.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2019
  • Latest release: Aug 4, 2023
  • Number of updates: 22
  • Update frequency: every 61.1 days
  • Top authors: vluongo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,636 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 gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▲2.06ms] Passed 4 tests

This is a short check of server-side resources used by WP Adf.ly Dashboard and Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.35 ▲2.44
Dashboard /wp-admin3.47 ▲0.1649.67 ▼0.24
Posts /wp-admin/edit.php3.57 ▲0.2149.77 ▲0.34
Add New Post /wp-admin/post-new.php6.04 ▲0.1599.45 ▲6.52
Media Library /wp-admin/upload.php3.38 ▲0.1538.64 ▲5.68
AdFly Integration Settings /wp-admin/options-general.php?page=wp-adf-ly-dashboard-and-integration/index.php3.3537.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Adf.ly Dashboard and Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11914.32 ▼0.081.98 ▼0.1940.45 ▼4.12
Dashboard /wp-admin2,257 ▲665.82 ▼0.06118.15 ▲15.2941.96 ▼3.32
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.0440.21 ▼0.7634.95 ▼0.83
Add New Post /wp-admin/post-new.php1,550 ▲1218.46 ▼4.73630.07 ▼9.4672.89 ▲22.06
Media Library /wp-admin/upload.php1,386 ▲14.22 ▼0.1096.71 ▼7.1942.22 ▼2.69
AdFly Integration Settings /wp-admin/options-general.php?page=wp-adf-ly-dashboard-and-integration/index.php1,0762.0723.6826.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt is a good inspiration

wp-adf-ly-dashboard-and-integration/index.php 92% from 13 tests

"WP Adf.ly Dashboard and Integration" version 1.3.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-adf-ly-dashboard-and-integration.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
Good job! No executable or dangerous file extensions detected578 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP210628529
CSS15236
JavaScript24713

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity38.00
▷ Minimum class complexity9.00
▷ Maximum class complexity67.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1565.22%
▷ Protected methods00.00%
▷ Private methods834.78%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin