72% post-to-menu

Code Review | Post to Menu

WordPress plugin Post to Menu scored72%from 54 tests.

About plugin

  • Plugin page: post-to-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.2
  • WordPress version: 6.3.1
  • First release: May 27, 2015
  • Latest release: May 29, 2015
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: SpencerGuier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,461 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
Installer ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼14.29ms] Passed 4 tests

Server-side resources used by Post to Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.64 ▼0.74
Dashboard /wp-admin3.33 ▲0.0351.98 ▲1.40
Posts /wp-admin/edit.php3.38 ▲0.0348.25 ▼0.63
Add New Post /wp-admin/post-new.php3.12 ▼2.7734.48 ▼57.19
Media Library /wp-admin/upload.php3.25 ▲0.0336.78 ▲1.96
Post To Menu /wp-admin/options-general.php?page=post-to-menu3.1931.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Post to Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.72 ▼0.571.63 ▼0.3540.26 ▲0.04
Dashboard /wp-admin2,207 ▲195.84 ▼0.0695.78 ▼5.8041.18 ▼2.97
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0539.33 ▼1.3336.63 ▲2.78
Add New Post /wp-admin/post-new.php1,541 ▲2223.36 ▲0.20642.37 ▼44.5449.81 ▼3.32
Media Library /wp-admin/upload.php1,392 ▲104.18 ▼0.1396.27 ▼10.7945.40 ▼0.48
Post To Menu /wp-admin/options-general.php?page=post-to-menu8712.0124.7926.49

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=post-to-menu
    • > Warning in wp-content/plugins/post-to-menu/plugin.php+110
    in_array() expects parameter 2 to be array, bool given

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/post-to-menu/plugin.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=post-to-menu
    • > Network (severe)
    wp-admin/dashicons-admin-post - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=post-to-menu
    • > Network (severe)
    wp-admin/dashicons-admin-page - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=post-to-menu
    • > Network (severe)
    wp-admin/dashicons-admin-media - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (`/assets/post-to-menu-2.png`), #2 (`/assets/post-to-menu-1.png`)
The official readme.txt is a good inspiration

post-to-menu/plugin.php 92% from 13 tests

The principal PHP file in "Post to Menu" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-to-menu.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin127 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115027127

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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