94% publica-ad-block-recovery

Code Review | Publica Ad Block Recovery

WordPress plugin Publica Ad Block Recovery scored 94% from 54 tests.

About plugin

  • Plugin page: publica-ad-block-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.3
  • WordPress version: 5.8.1
  • First release: Apr 7, 2017
  • Latest release: Apr 7, 2017
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: benantier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 369 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.87ms] Passed 4 tests

A check of server-side resources used by Publica Ad Block Recovery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.07 ▲14.43
Dashboard /wp-admin3.09 ▲0.0342.99 ▼2.71
Posts /wp-admin/edit.php3.14 ▲0.0345.74 ▲0.26
Add New Post /wp-admin/post-new.php5.45 ▲0.0188.24 ▼559.09
Media Library /wp-admin/upload.php3.03 ▲0.0335.22 ▲2.08
Publica Ad Recovery /wp-admin/options-general.php?page=publica-ad-block-recovery3.0028.33

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Publica Ad Block Recovery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.74 ▲0.0710.77 ▲1.4849.91 ▼2.86
Dashboard /wp-admin2,994 ▲635.98 ▼0.16132.99 ▼19.69104.80 ▼3.91
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0065.39 ▼3.9084.48 ▼1.73
Add New Post /wp-admin/post-new.php1,503 ▼2,13318.83 ▲3.90363.94 ▼110.38105.25 ▼9.99
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.04155.20 ▼3.56112.55 ▼5.10
Publica Ad Recovery /wp-admin/options-general.php?page=publica-ad-block-recovery1,0852.1056.1982.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/publica-ad-block-recovery/views/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/publica-ad-block-recovery/publica-ad-block-recovery.php:154

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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: The official readme.txt might help

publica-ad-block-recovery/publica-ad-block-recovery.php Passed 13 tests

The primary PHP file in "Publica Ad Block Recovery" version 1.0.0 is used by WordPress to initiate all plugin functionality
76 characters long description:
Helping Publishers monetize ad blocked traffic through video ad reinsertion.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin428 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1500242
PHP21836173
make12013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin