84% menu-recent-pages

Code Review | Menu Recent Pages

WordPress plugin Menu Recent Pages scored84%from 54 tests.

About plugin

  • Plugin page: menu-recent-pages
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6+
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Oct 23, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: shaunandrews (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,809 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Menu Recent Pages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.86 ▼3.02
Dashboard /wp-admin3.31 ▲0.0154.36 ▲3.08
Posts /wp-admin/edit.php3.37 ▲0.0148.77 ▲1.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.07 ▼9.61
Media Library /wp-admin/upload.php3.24 ▲0.0138.75 ▲2.81

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Menu Recent Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲2714.38 ▼0.231.88 ▼0.1244.85 ▲3.72
Dashboard /wp-admin2,219 ▲425.55 ▼0.1099.28 ▲7.7546.30 ▲3.21
Posts /wp-admin/edit.php2,121 ▲212.00 ▲0.0335.09 ▼0.1633.28 ▼2.55
Add New Post /wp-admin/post-new.php1,539 ▲1123.10 ▲0.13658.24 ▼24.9255.33 ▲3.60
Media Library /wp-admin/upload.php1,424 ▲244.19 ▲0.05102.67 ▼7.4243.88 ▼3.22

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-recent-pages/menu-recent-pages.php:17

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: pages, menu

menu-recent-pages/menu-recent-pages.php Passed 13 tests

The primary PHP file in "Menu Recent Pages" version 0.1 is used by WordPress to initiate all plugin functionality
65 characters long description:
Adds a list of recently edited pages to your wp-admin navigation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191244
CSS11027

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.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
No PNG files were detected