83% extra-posts-pages-menu

Code Review | Extra Post Pages Menu

WordPress plugin Extra Post Pages Menu scored83%from 54 tests.

About plugin

  • Plugin page: extra-posts-pages...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: May 22, 2013
  • Latest release: Mar 10, 2020
  • Number of updates: 13
  • Update frequency: every 191.1 days
  • Top authors: mindstien (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.72ms] Passed 4 tests

This is a short check of server-side resources used by Extra Post Pages Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.79 ▼1.76
Dashboard /wp-admin3.34 ▲0.0348.15 ▼2.94
Posts /wp-admin/edit.php3.39 ▲0.0347.18 ▼4.94
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.56 ▼9.22
Media Library /wp-admin/upload.php3.26 ▲0.0337.16 ▲2.89
Publish (1) /wp-admin/edit.php?post_type=page&page=redirectmetoppublish2.4310.68
Publish (1) /wp-admin/edit.php?page=redirectmetopublish2.4312.26
Auto-draft (5) /wp-admin/edit.php?page=redirectmetoauto-draft2.4312.57
Draft (1) /wp-admin/edit.php?post_type=page&page=redirectmetopdraft2.4310.79

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Extra Post Pages Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5913.23 ▼1.011.66 ▼0.4045.37 ▲0.46
Dashboard /wp-admin2,222 ▲345.88 ▲1.00107.56 ▼12.5640.53 ▼2.97
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0539.59 ▲3.9037.43 ▲2.72
Add New Post /wp-admin/post-new.php1,558 ▲2423.02 ▼0.15660.57 ▲15.6848.40 ▼2.59
Media Library /wp-admin/upload.php1,404 ▲194.21 ▼0.0096.18 ▼28.7241.99 ▼6.54
Publish (1) /wp-admin/edit.php?post_type=page&page=redirectmetoppublish1,8682.0032.8730.34
Publish (1) /wp-admin/edit.php?page=redirectmetopublish2,1052.0038.5729.79
Auto-draft (5) /wp-admin/edit.php?page=redirectmetoauto-draft2,7332.0237.6732.95
Draft (1) /wp-admin/edit.php?post_type=page&page=redirectmetopdraft1,8222.0134.9530.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extra-posts-pages-menu/extra-posts-pages-menu.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: Please add images for these screenshots: #1 (See how this plugin adds the menu items to wordpress posts menu....), #2 (1. See how this plugin adds the menu items to wordpress pages menu....)
The official readme.txt is a good inspiration

extra-posts-pages-menu/extra-posts-pages-menu.php 92% from 13 tests

The primary PHP file in "Extra Post Pages Menu" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11312109

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin