84% page-management-dropdown

Code Review | Page Management Dropdown

WordPress plugin Page Management Dropdown scored84%from 54 tests.

About plugin

  • Plugin page: page-management-d...
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2008
  • Latest release: Jan 15, 2015
  • Number of updates: 20
  • Update frequency: every 117.4 days
  • Top authors: jaschaephraim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /24,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Page Management Dropdown
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0041.58 ▼3.42
Dashboard /wp-admin3.35 ▼0.0450.81 ▼16.44
Posts /wp-admin/edit.php3.40 ▲0.0051.42 ▼0.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0093.84 ▲6.42
Media Library /wp-admin/upload.php3.27 ▲0.0034.11 ▼0.24
Sample Page /wp-admin/post.php?action=edit&post=25.9480.06

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Page Management Dropdown: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.05 ▼0.151.69 ▼0.3643.85 ▲0.27
Dashboard /wp-admin2,202 ▲285.62 ▼0.0482.95 ▼15.9138.31 ▼7.14
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0739.57 ▲2.0236.59 ▲0.17
Add New Post /wp-admin/post-new.php1,529 ▲323.30 ▲0.28620.76 ▼93.1358.67 ▲11.86
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.01116.65 ▲8.1849.99 ▲3.29
Sample Page /wp-admin/post.php?action=edit&post=26,28026.591,019.5137.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-management-dropdown/page-management-dropdown.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: administration, page, menu, pages, admin...

page-management-dropdown/page-management-dropdown.php Passed 13 tests

Analyzing the main PHP file in "Page Management Dropdown" version 2.7
65 characters long description:
Adds a link to edit each individual page to the Pages admin menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin