90% inner-page-menu

Code Review | Inner Page Menu

WordPress plugin Inner Page Menu scored90%from 54 tests.

About plugin

  • Plugin page: inner-page-menu
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0
  • WordPress version: 6.3.1
  • First release: Feb 10, 2015
  • Latest release: May 8, 2022
  • Number of updates: 9
  • Update frequency: every 293.8 days
  • Top authors: EnigmaWeb (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /7,097 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.69MB] [CPU: ▼14.31ms] Passed 4 tests

An overview of server-side resources used by Inner Page Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.56 ▼0.90
Dashboard /wp-admin3.32 ▲0.0156.62 ▲0.52
Posts /wp-admin/edit.php3.37 ▲0.0150.94 ▲1.55
Add New Post /wp-admin/post-new.php3.10 ▼2.7834.83 ▼58.41
Media Library /wp-admin/upload.php3.24 ▲0.0141.90 ▲4.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inner Page Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.25 ▼0.111.75 ▲0.0543.72 ▼2.33
Dashboard /wp-admin2,198 ▲215.63 ▼0.0489.81 ▼9.6241.94 ▼2.87
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0441.44 ▲5.8835.99 ▲0.09
Add New Post /wp-admin/post-new.php1,539 ▲1318.14 ▼5.03623.08 ▲8.4078.70 ▲26.93
Media Library /wp-admin/upload.php1,403 ▲34.11 ▼0.09110.85 ▲8.8843.07 ▼1.94

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: add menu, menu, inner page menu

inner-page-menu/index.php 92% from 13 tests

The main PHP script in "Inner Page Menu" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("inner-page-menu.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141267

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.44MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png99.47KB33.42KB▼ 66.40%
screenshot-1.png351.95KB136.23KB▼ 61.29%