89% adoption

Code Review | Adoption

WordPress plugin Adoption scored89%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: 6.3.1
  • 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,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Adoption
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.45 ▼5.69
Dashboard /wp-admin3.29 ▼0.0142.68 ▼6.51
Posts /wp-admin/edit.php3.36 ▲0.0144.38 ▼2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.24 ▼2.67
Media Library /wp-admin/upload.php3.24 ▲0.0133.06 ▲0.50

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Adoption
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲30513.52 ▼0.771.68 ▼0.1433.27 ▼11.92
Dashboard /wp-admin2,449 ▲2585.24 ▲0.36141.62 ▲26.1646.55 ▼0.78
Posts /wp-admin/edit.php2,089 ▼02.07 ▲0.0439.63 ▲5.1534.61 ▼0.82
Add New Post /wp-admin/post-new.php1,538 ▲1923.03 ▼0.16623.60 ▼39.1855.34 ▼1.84
Media Library /wp-admin/upload.php1,391 ▲64.25 ▼0.03105.77 ▲7.3840.65 ▼2.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
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, but this is not an exhaustive test

Optimizations

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
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === adoption === )
  • Screenshots: Please 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin8,434 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,0722,8517,780
CSS26738321
PHP123541281
PO File1171752

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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
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%