84% double-slash-domains

Code Review | Double Slash Domains

WordPress plugin Double Slash Domains scored84%from 54 tests.

About plugin

  • Plugin page: double-slash-domains
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2016
  • Latest release: Mar 21, 2018
  • Number of updates: 6
  • Update frequency: every 123.5 days
  • Top authors: SultanICQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼12.43ms] Passed 4 tests

This is a short check of server-side resources used by Double Slash Domains
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.49 ▼5.97
Dashboard /wp-admin3.38 ▲0.0340.58 ▼22.96
Posts /wp-admin/edit.php3.41 ▲0.0643.47 ▼3.21
Add New Post /wp-admin/post-new.php6.05 ▲0.1779.60 ▼17.05
Media Library /wp-admin/upload.php3.31 ▲0.0931.50 ▼3.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Double Slash Domains
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.171.47 ▼0.3739.26 ▼8.72
Dashboard /wp-admin2,209 ▲214.80 ▼1.05106.40 ▼12.6943.64 ▼0.55
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0039.06 ▲4.8434.88 ▲2.87
Add New Post /wp-admin/post-new.php1,543 ▲2423.33 ▲0.17652.15 ▼78.1353.57 ▼15.24
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0794.59 ▼2.7643.57 ▼3.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/double-slash-domains/double-slash-domains.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: https, http, mixed content

double-slash-domains/double-slash-domains.php 92% from 13 tests

"Double Slash Domains" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 244 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113744

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
PNG images were not found in this plugin