84% subpagelister

Code Review | Subpagelister

WordPress plugin Subpagelister scored84%from 54 tests.

About plugin

  • Plugin page: subpagelister
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2017
  • Latest release: Nov 1, 2022
  • Number of updates: 6
  • Update frequency: every 348.0 days
  • Top authors: strangerstudios (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Subpagelister
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.77 ▲1.86
Dashboard /wp-admin3.33 ▼0.0243.21 ▼18.95
Posts /wp-admin/edit.php3.38 ▲0.0245.59 ▲3.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.81 ▼18.56
Media Library /wp-admin/upload.php3.25 ▲0.0231.90 ▼4.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Subpagelister
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.29 ▼1.461.72 ▼0.0343.13 ▼0.23
Dashboard /wp-admin2,206 ▲144.84 ▼0.10116.60 ▼0.1041.19 ▼1.99
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0439.08 ▲2.4036.06 ▲5.28
Add New Post /wp-admin/post-new.php1,537 ▲323.28 ▲4.78584.59 ▼24.8452.69 ▼16.60
Media Library /wp-admin/upload.php1,385 ▼04.16 ▼0.0798.40 ▼1.7643.40 ▼5.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/subpagelister/subpagelister.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: theme, table of contents, content, index, shortcode

subpagelister/subpagelister.php Passed 13 tests

This is the main PHP file of "Subpagelister" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Dynamic content organization with flexible display options.

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
Good job! No executable or dangerous file extensions detected267 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13227169
CSS116198

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin