84% wp-pages-advanced

Code Review | WordPress Pages Advanced

WordPress plugin WordPress Pages Advanced scored84%from 54 tests.

About plugin

  • Plugin page: wp-pages-advanced
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Nov 2, 2022
  • Number of updates: 32
  • Update frequency: every 73.3 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.09ms] Passed 4 tests

Analyzing server-side resources used by WordPress Pages Advanced
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.22 ▼1.98
Dashboard /wp-admin3.41 ▲0.1150.11 ▲0.07
Posts /wp-admin/edit.php3.52 ▲0.1749.31 ▼4.08
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.61 ▼18.35
Media Library /wp-admin/upload.php3.33 ▲0.1036.81 ▲2.87
All Pages /wp-admin/edit.php?post_type=page&page=wp-pages-advanced3.3343.06

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Pages Advanced
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.43 ▲0.442.35 ▲0.7543.03 ▲2.42
Dashboard /wp-admin2,204 ▲245.62 ▼0.0593.46 ▲3.2744.42 ▲2.16
Posts /wp-admin/edit.php2,119 ▲222.19 ▲0.1941.04 ▲1.7136.92 ▲0.84
Add New Post /wp-admin/post-new.php1,536 ▲1023.21 ▼0.05669.08 ▼35.5751.68 ▼8.20
Media Library /wp-admin/upload.php1,415 ▲154.24 ▲0.0797.15 ▼3.3641.03 ▼2.34
All Pages /wp-admin/edit.php?post_type=page&page=wp-pages-advanced1,0591.8735.0032.82

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 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-pages-advanced/index.php
    • > /wp-content/plugins/wp-pages-advanced/templates/show.php
    • > /wp-content/plugins/wp-pages-advanced/wp-pages-advanced.php
    • > /wp-content/plugins/wp-pages-advanced/templates/add-multiple.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wordpress, advanced, multiple, sorting, custom...

wp-pages-advanced/wp-pages-advanced.php Passed 13 tests

This is the main PHP file of "WordPress Pages Advanced" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
117 characters long description:
Structures the pages in WordPress for more robust page adding, edit, sorting and managing. It is more clean you know.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin881 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP58063635
JavaScript14229141
CSS100105

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity16.00
▷ Minimum class complexity6.00
▷ Maximum class complexity26.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin