89% hide-pages-from-dashboard-page-list

Code Review | Hide Pages from Dashboard Page List

WordPress plugin Hide Pages from Dashboard Page List scored89%from 54 tests.

About plugin

  • Plugin page: hide-pages-from-d...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jul 7, 2016
  • Latest release: Mar 19, 2018
  • Number of updates: 16
  • Update frequency: every 38.8 days
  • Top authors: mynamevenu24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.07ms] Passed 4 tests

A check of server-side resources used by Hide Pages from Dashboard Page List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.53 ▲2.17
Dashboard /wp-admin3.32 ▲0.0250.40 ▲0.16
Posts /wp-admin/edit.php3.37 ▲0.0252.81 ▲4.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.75 ▲2.34
Media Library /wp-admin/upload.php3.24 ▲0.0236.23 ▼0.41
Hide Pages /wp-admin/options-general.php?page=hide-pages-dashboard3.2233.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hide Pages from Dashboard Page List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.25 ▼0.411.97 ▲0.0746.22 ▼1.44
Dashboard /wp-admin2,201 ▲215.55 ▼0.1299.86 ▲2.9044.55 ▲3.62
Posts /wp-admin/edit.php2,106 ▲61.97 ▼0.0535.57 ▼5.3833.14 ▼1.64
Add New Post /wp-admin/post-new.php1,531 ▼623.44 ▲5.13664.97 ▲30.7058.37 ▼27.23
Media Library /wp-admin/upload.php1,403 ▼04.30 ▲0.12103.52 ▲2.5142.15 ▼1.34
Hide Pages /wp-admin/options-general.php?page=hide-pages-dashboard8321.9626.5053.37

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Create content ShortCode), #2 (Copy shortcode and paste it in pages or posts or widgets), #3 (Create image shortcode)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

hide-pages-from-dashboard-page-list/hide_pages_dashboard.php 92% from 13 tests

"Hide Pages from Dashboard Page List" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("hide-pages-from-dashboard-page-list.php" instead of "hide_pages_dashboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin148 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24036103
CSS19245

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin