68% easy-options-page

Code Review | Easy Options Page

WordPress plugin Easy Options Page scored68%from 54 tests.

About plugin

  • Plugin page: easy-options-page
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 21, 2014
  • Latest release: Nov 2, 2015
  • Number of updates: 17
  • Update frequency: every 32.9 days
  • Top authors: jokioki (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,222 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.90MB] [CPU: ▼38.38ms] Passed 4 tests

This is a short check of server-side resources used by Easy Options Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.39 ▼3.48
Dashboard /wp-admin3.05 ▼0.2926.67 ▼34.83
Posts /wp-admin/edit.php3.06 ▼0.3022.99 ▼32.24
Add New Post /wp-admin/post-new.php3.06 ▼2.8327.92 ▼79.97
Media Library /wp-admin/upload.php3.06 ▼0.1727.87 ▼6.47
Easy Options Page /wp-admin/options-general.php?page=options_page_plugin3.0624.00

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Options Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.33 ▼1.031.93 ▲0.1543.78 ▲0.47
Dashboard /wp-admin2,226 ▲444.88 ▼0.02111.63 ▼0.6542.82 ▼3.90
Posts /wp-admin/edit.php2,109 ▲202.02 ▼0.0133.08 ▼6.7235.30 ▼0.57
Add New Post /wp-admin/post-new.php1,530 ▲217.70 ▼0.46685.24 ▲65.1253.34 ▼2.26
Media Library /wp-admin/upload.php1,411 ▲324.24 ▲0.03100.60 ▲0.1741.83 ▼6.37
Easy Options Page /wp-admin/options-general.php?page=options_page_plugin2,6132.1627.2898.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=options_page_plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-options-page/easy-options-page.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: options pages option page shortcode easy

easy-options-page/easy-options-page.php Passed 13 tests

This is the main PHP file of "Easy Options Page" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
Creates Options Pages in less than 2 minutes. And with shortcodes to display the options content

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
Good job! No executable or dangerous file extensions detected443 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14518370
CSS21444
JavaScript13029

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions10
▷ Named functions10100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/title.png4.17KB2.31KB▼ 44.47%