10% show-your-pages

Code Review | Show Your Pages

WordPress plugin Show Your Pages scored10%from 54 tests.

About plugin

  • Plugin page: show-your-pages
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2013
  • Latest release: Sep 11, 2013
  • Number of updates: 3
  • Update frequency: every 58.7 days
  • Top authors: globalnet-1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/show-your-pages/show-your-pages.php+136
    Declaration of Syp_Walker_Page_Checklist::start_el(&$output, $page, $depth, $args, $current_page) should be compatible with Walker_Page::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.87ms] Passed 4 tests

Server-side resources used by Show Your Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.84 ▼33.86
Dashboard /wp-admin2.10 ▼1.206.35 ▼46.34
Posts /wp-admin/edit.php2.10 ▼1.255.84 ▼43.02
Add New Post /wp-admin/post-new.php2.10 ▼3.797.32 ▼92.27
Media Library /wp-admin/upload.php2.10 ▼1.136.52 ▼30.52
Show Your Pages /wp-admin/edit.php?post_type=page&page=syp_settings2.107.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Show Your Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5813.28 ▼1.105.06 ▲3.0944.28 ▼0.64
Dashboard /wp-admin2,219 ▲134.85 ▼1.04132.85 ▲30.5656.35 ▲11.38
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0035.54 ▼3.9536.44 ▼0.38
Add New Post /wp-admin/post-new.php1,529 ▼917.48 ▼5.73684.64 ▲25.4561.95 ▼0.13
Media Library /wp-admin/upload.php1,401 ▲44.19 ▲0.0798.67 ▼5.4347.35 ▼1.25
Show Your Pages /wp-admin/edit.php?post_type=page&page=syp_settings8012.0523.0826.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/show-your-pages/show-your-pages.php+136
    Declaration of Syp_Walker_Page_Checklist::start_el(&$output, $page, $depth, $args, $current_page) should be compatible with Walker_Page::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_show_your_pages
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=page&page=syp_settings
    • > Warning in wp-content/plugins/show-your-pages/show-your-pages.php+136
    Declaration of Syp_Walker_Page_Checklist::start_el(&$output, $page, $depth, $args, $current_page) should be compatible with Walker_Page::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
    • > GET request to /wp-admin/edit.php?post_type=page&page=syp_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Show_Your_Pages_Core::syp_create_menu() should not be called statically
    • > GET request to /wp-admin/edit.php?post_type=page&page=syp_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Show_Your_Pages_Core::register_syp_settings() should not be called statically
    • > GET request to /wp-admin/edit.php?post_type=page&page=syp_settings
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Show_Your_Pages_Core::syp_settings_page() should not be called statically
    • > GET request to /wp-admin/edit.php?post_type=page&page=syp_settings
    • > Notice in wp-content/plugins/show-your-pages/show-your-pages.php+47
    Undefined index: settings-updated
    • > GET request to /wp-admin/edit.php?post_type=page&page=syp_settings
    • > Warning in wp-content/plugins/show-your-pages/show-your-pages.php+144
    in_array() expects parameter 2 to be array, bool given

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-your-pages/show-your-pages.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: The plugin tags were not defined
Please take inspiration from this readme.txt

show-your-pages/show-your-pages.php Passed 13 tests

"Show Your Pages" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
Display pages at where you want

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12423102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.33
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin