89% custom-page-loader

Code Review | Custom Page Loader

WordPress plugin Custom Page Loader scored89%from 54 tests.

About plugin

  • Plugin page: custom-page-loader
  • Plugin version: 0.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Jun 5, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: westcoastdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.91ms] Passed 4 tests

Analyzing server-side resources used by Custom Page Loader
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0527.41 ▼10.36
Dashboard /wp-admin3.34 ▲0.0346.70 ▼2.13
Posts /wp-admin/edit.php3.39 ▲0.0346.05 ▼3.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.24 ▼15.22
Media Library /wp-admin/upload.php3.26 ▲0.0332.77 ▼2.28

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Page Loader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.44 ▼1.119.43 ▲7.8141.35 ▲2.68
Dashboard /wp-admin2,195 ▲205.54 ▼0.0882.90 ▼15.1737.73 ▼1.79
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0332.39 ▼3.0634.58 ▼1.45
Add New Post /wp-admin/post-new.php1,404 ▼1018.67 ▼1.57607.14 ▲13.0359.67 ▼7.78
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0297.19 ▼2.5341.02 ▲0.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can take inspiration from this readme.txt

custom-page-loader/wcd-pageloader.php 77% from 13 tests

"Custom Page Loader" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-page-loader.php" instead of "wcd-pageloader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin421 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13225190
Sass127580
JavaScript28676
CSS17175

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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

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