93% adoric

Code Review | Adoric - Free WP popup plugin to grow your email list

WordPress plugin Adoric - Free WP popup plugin to grow your email list scored 93% from 54 tests.

About plugin

  • Plugin page: adoric
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9
  • WordPress version: 5.9.2
  • First release: Apr 7, 2021
  • Latest release: Feb 21, 2022
  • Number of updates: 28
  • Update frequency: every 11.5 days
  • Top authors: adoric (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,323 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼298.17ms] 75% from 4 tests

An overview of server-side resources used by Adoric - Free WP popup plugin to grow your email list
The following require your attention
  • CPU: Total CPU usage should be kept under 500.00ms (currently 729.41ms on /wp-admin/admin.php?page=adoric/views/dashboard.php)
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1356.79 ▲11.09
Dashboard /wp-admin3.49 ▲0.0833.51 ▼2.30
Posts /wp-admin/edit.php3.71 ▲0.0740.03 ▲1.44
Add New Post /wp-admin/post-new.php6.96 ▼0.0196.82 ▼1,186.99
Media Library /wp-admin/upload.php3.36 ▲0.0626.71 ▼4.82
Dashboard /wp-admin/admin.php?page=adoric/views/dashboard.php4.00729.41
Settings /wp-admin/admin.php?page=adoric/views/settings.php3.3425.06

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 49 new files
Database: 1 new table, no new options
New tables
wp_adoric_data

Browser metrics Passed 4 tests

An overview of browser requirements for Adoric - Free WP popup plugin to grow your email list
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,804 ▲6215.84 ▲0.095.73 ▼0.142.32 ▲0.12
Dashboard /wp-admin2,930 ▲696.15 ▼0.02117.74 ▼15.71167.63 ▲7.92
Posts /wp-admin/edit.php2,730 ▲363.13 ▼0.1162.74 ▼1.83141.25 ▲1.00
Add New Post /wp-admin/post-new.php1,800 ▲11020.10 ▼0.54388.95 ▼45.00171.87 ▲18.80
Media Library /wp-admin/upload.php1,734 ▲365.55 ▲0.07124.33 ▼19.82198.95 ▲6.21
Dashboard /wp-admin/admin.php?page=adoric/views/dashboard.php2,74312.22272.52190.48
Settings /wp-admin/admin.php?page=adoric/views/settings.php1,1692.4350.1495.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ADORICWP' not found in wp-content/plugins/adoric/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ADORICWP' not found in wp-content/plugins/adoric/views/dashboard.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #10, #11, #12, #8, #9 in adoric/assets to your readme.txt
You can take inspiration from this readme.txt

adoric/adoric.php 92% from 13 tests

This is the main PHP file of "Adoric - Free WP popup plugin to grow your email list" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin9,684 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
SVG2233776,948
CSS35962,018
PHP1111417634
JavaScript212084

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.12
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods34
▷ Static methods823.53%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin