99% adoption

Code Review | Adoption

WordPress plugin Adoption scored 99% from 54 tests.

About plugin

  • Plugin page: adoption
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4.1
  • WordPress version: 5.9.2
  • First release: Aug 20, 2012
  • Latest release: Sep 4, 2012
  • Number of updates: 9
  • Update frequency: every 1.8 days
  • Top authors: aprea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,236 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼291.09ms] Passed 4 tests

Analyzing server-side resources used by Adoption
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0767.24 ▲15.89
Dashboard /wp-admin3.46 ▲0.0533.91 ▼1.54
Posts /wp-admin/edit.php3.71 ▲0.0738.63 ▼1.22
Add New Post /wp-admin/post-new.php6.95 ▼0.0398.28 ▼1,171.46
Media Library /wp-admin/upload.php3.36 ▲0.0635.36 ▲9.85

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Adoption
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,080 ▲33616.87 ▲1.246.02 ▼0.012.11 ▼1.33
Dashboard /wp-admin3,212 ▲3517.01 ▲0.80188.40 ▲46.13194.98 ▲34.51
Posts /wp-admin/edit.php2,670 ▼03.26 ▲0.02110.49 ▲46.73152.33 ▲5.80
Add New Post /wp-admin/post-new.php1,639 ▼11320.26 ▼1.30491.00 ▲43.38173.62 ▼45.56
Media Library /wp-admin/upload.php1,695 ▼35.55 ▲0.06163.31 ▲7.25210.54 ▲17.83

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe 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 ( === adoption === )
  • Screenshots: Add an image for screenshot #1 (The Adoption dashboard widget showing statistics for the last 6 months, April is highlighted.)
You can take inspiration from this readme.txt

adoption/adoption.php Passed 13 tests

Analyzing the main PHP file in "Adoption" version 0.1.1
57 characters long description:
Shows user registration statistics as a dashboard widget.

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 plugin8,434 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File1171752

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.41KB8.42KB▼ 58.75%