84% subpage-view

Code Review | Subpage List

WordPress plugin Subpage List scored84%from 54 tests.

About plugin

  • Plugin page: subpage-view
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2009
  • Latest release: Oct 7, 2020
  • Number of updates: 45
  • Update frequency: every 94.0 days
  • Top authors: codework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /9,341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.20ms] Passed 4 tests

A check of server-side resources used by Subpage List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.10 ▲3.54
Dashboard /wp-admin3.39 ▲0.0547.07 ▼10.63
Posts /wp-admin/edit.php3.51 ▲0.1544.96 ▼3.04
Add New Post /wp-admin/post-new.php5.97 ▲0.0981.55 ▼14.32
Media Library /wp-admin/upload.php3.31 ▲0.0934.36 ▼0.79

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_subpage_list_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Subpage List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.474.61 ▲2.8944.10 ▲2.52
Dashboard /wp-admin2,206 ▲214.87 ▼0.02114.51 ▲12.6443.42 ▲2.72
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0233.41 ▼1.8733.66 ▼7.56
Add New Post /wp-admin/post-new.php1,533 ▲1423.22 ▲0.00627.75 ▼33.8258.17 ▲2.85
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0897.18 ▼2.9242.95 ▼2.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_subpage_list_widget

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/subpage-view/inc/class-subpage-list-excerpt-walker.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/subpage-view/inc/class-subpage-list-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/subpage-view/inc/class-subpage-list-excerpt-walker.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: A description for screenshot #1 is required in subpage-view/assets to your readme.txt
The official readme.txt is a good inspiration

subpage-view/subpage-view.php 92% from 13 tests

"Subpage List" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 278 characters long)

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 plugin339 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP557139339

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods631.58%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin