94% adbirt

Code Review | Adbirt

WordPress plugin Adbirt scored 94% from 54 tests.

About plugin

  • Plugin page: adbirt
  • Plugin version: 0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 5.8.1
  • First release: Sep 28, 2020
  • Latest release: Nov 24, 2020
  • Number of updates: 4
  • Update frequency: every 15.8 days
  • Top authors: adbirt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 220 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼182.21ms] Passed 4 tests

This is a short check of server-side resources used by Adbirt
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0025.92 ▲1.37
Dashboard /wp-admin3.06 ▼0.0040.32 ▼1.83
Posts /wp-admin/edit.php3.12 ▲0.0143.38 ▲10.68
Add New Post /wp-admin/post-new.php5.43 ▼0.0172.21 ▼728.95
Media Library /wp-admin/upload.php3.01 ▲0.0023.71 ▲0.56

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adbirt
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,852 ▲25115.99 ▼0.0212.06 ▲6.3777.39 ▼5.31
Dashboard /wp-admin2,930 ▲346.11 ▼0.05135.20 ▲6.15230.37 ▲56.36
Posts /wp-admin/edit.php2,737 ▼03.22 ▼0.0272.36 ▲12.85166.58 ▲30.15
Add New Post /wp-admin/post-new.php3,759 ▼5418.98 ▲0.02409.92 ▼49.01158.20 ▼2.66
Media Library /wp-admin/upload.php1,752 ▼05.57 ▲0.04146.13 ▲8.95182.20 ▼6.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adbirt/adbirt.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === adbirt === )
You can look at the official readme.txt

adbirt/adbirt.php 92% from 13 tests

The primary PHP file in "Adbirt" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 303 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12105

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

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