84% admin-menu-post-list

Code Review | Admin Menu Post List

WordPress plugin Admin Menu Post List scored84%from 54 tests.

About plugin

  • Plugin page: admin-menu-post-list
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.7
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Mar 10, 2021
  • Number of updates: 37
  • Update frequency: every 72.7 days
  • Top authors: miyarakira (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

700+ active /9,490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.51ms] Passed 4 tests

Server-side resources used by Admin Menu Post List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0643.07 ▼0.55
Dashboard /wp-admin3.37 ▲0.0752.44 ▼7.90
Posts /wp-admin/edit.php3.43 ▲0.0753.68 ▼1.24
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.02 ▼19.29
Media Library /wp-admin/upload.php3.30 ▲0.0736.65 ▼1.61
Post List /wp-admin/options-general.php?page=admin_menu_post_list_settings_page3.2734.28

Server storage [IO: ▲0.02MB] [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
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Admin Menu Post List: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▼0.171.87 ▲0.2140.76 ▼0.81
Dashboard /wp-admin2,204 ▲275.59 ▼0.0891.52 ▼11.0940.03 ▼4.37
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0638.66 ▲4.3037.10 ▲0.63
Add New Post /wp-admin/post-new.php1,540 ▲1218.21 ▼4.98611.07 ▼49.6260.63 ▲15.51
Media Library /wp-admin/upload.php1,406 ▲64.19 ▲0.0398.87 ▼9.0142.92 ▼3.93
Post List /wp-admin/options-general.php?page=admin_menu_post_list_settings_page1,0012.0525.2428.45

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-menu-post-list/admin-menu-post-list.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
8 plugin tags: page, custom post type, admin, admin menu, menu...

admin-menu-post-list/admin-menu-post-list.php Passed 13 tests

The entry point to "Admin Menu Post List" version 2.0.7 is a PHP file that has certain tags in its header comment area
37 characters long description:
Display a post list in the admin menu

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected455 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP215192399
CSS10056

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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