90% wp-domains

Code Review | WP Domains

WordPress plugin WP Domains scored90%from 54 tests.

About plugin

  • Plugin page: wp-domains
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Jul 9, 2016
  • Number of updates: 24
  • Update frequency: every 0.9 days
  • Top authors: ecanuto (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,325 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼2.20ms] Passed 4 tests

Analyzing server-side resources used by WP Domains
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.59 ▼3.41
Dashboard /wp-admin3.35 ▲0.0547.93 ▼5.75
Posts /wp-admin/edit.php3.40 ▲0.0549.64 ▲1.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.83 ▼0.66
Media Library /wp-admin/upload.php3.27 ▲0.0537.41 ▲3.95
Domains /wp-admin/options-general.php?page=wp-domains3.2431.30

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Domains
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.32 ▼1.341.70 ▼0.3440.07 ▼1.64
Dashboard /wp-admin2,213 ▲224.87 ▼1.02101.70 ▼14.1939.14 ▼5.33
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0039.67 ▲3.1235.64 ▲1.15
Add New Post /wp-admin/post-new.php1,517 ▼1617.67 ▼5.63618.04 ▼66.2048.62 ▼1.98
Media Library /wp-admin/upload.php1,395 ▲44.21 ▲0.0395.52 ▼3.3340.42 ▼4.09
Domains /wp-admin/options-general.php?page=wp-domains7762.0523.6228.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: domain, admin, url

wp-domains/wp-domains.php 92% from 13 tests

The primary PHP file in "WP Domains" version 0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin108 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP424112108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin