89% each-domain-a-page

Code Review | Each Domain a Page

WordPress plugin Each Domain a Page scored89%from 54 tests.

About plugin

  • Plugin page: each-domain-a-page
  • Plugin version: 1.6.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 26, 2019
  • Latest release: Oct 25, 2023
  • Number of updates: 30
  • Update frequency: every 49.7 days
  • Top authors: ruigehond (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,092 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.15ms] Passed 4 tests

Server-side resources used by Each Domain a Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.96 ▼0.93
Dashboard /wp-admin3.43 ▲0.1348.50 ▲0.90
Posts /wp-admin/edit.php3.55 ▲0.1946.02 ▲1.77
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.22 ▼2.33
Media Library /wp-admin/upload.php3.36 ▲0.1338.65 ▲2.70
Each domain a page /wp-admin/admin.php?page=each-domain-a-page3.3231.73

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • You have illegally modified 1 file (0.91KB) outside of "wp-content/plugins/each-domain-a-page/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
ruigehond007
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Each Domain a Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.40 ▲0.111.79 ▲0.1844.15 ▲5.81
Dashboard /wp-admin2,195 ▲155.55 ▼0.1381.80 ▼5.5637.41 ▼8.83
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0434.34 ▼2.7133.09 ▼2.75
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▼0.54607.08 ▼74.0448.59 ▼10.02
Media Library /wp-admin/upload.php1,397 ▼34.15 ▼0.0896.24 ▼15.6840.54 ▼6.57
Each domain a page /wp-admin/admin.php?page=each-domain-a-page8982.0021.8131.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • ruigehond007
    • 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 | 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: You can look at the official readme.txt

each-domain-a-page/each-domain-a-page.php Passed 13 tests

The main PHP file in "Each Domain a Page" ver. 1.6.2 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Serves a specific landing page from WordPress depending on the domain used to access the WordPress installation.

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
There were no executable files found in this plugin641 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP140174549
PO File1212192

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity92.00
▷ Minimum class complexity92.00
▷ Maximum class complexity92.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1875.00%
▷ Protected methods00.00%
▷ Private methods625.00%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin