68% admin-options-pages

Code Review | Admin Options Pages

WordPress plugin Admin Options Pages scored 68% from 54 tests.

About plugin

  • Plugin page: admin-options-pages
  • Plugin version: 0.9.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9.2
  • WordPress version: 5.9.2
  • First release: Mar 27, 2019
  • Latest release: Mar 18, 2022
  • Number of updates: 25
  • Update frequency: every 54.2 days
  • Top authors: poolghost (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 2,081 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼303.78ms] Passed 4 tests

A check of server-side resources used by Admin Options Pages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.33 ▼3.51
Dashboard /wp-admin4.09 ▲0.6836.84 ▲4.01
Posts /wp-admin/edit.php4.32 ▲0.6745.67 ▲10.37
Add New Post /wp-admin/post-new.php7.63 ▲0.66102.17 ▼1,218.09
Media Library /wp-admin/upload.php4.04 ▲0.7330.15 ▲2.47
Add New /wp-admin/admin.php?page=admin_options_pages_create4.2443.47
Edit Page /wp-admin/admin.php?page=admin_options_pages_edit4.1728.06
Settings /wp-admin/admin.php?page=admin_options_pages_settings4.0324.68
All Options Pages /wp-admin/admin.php?page=admin_options_pages_master4.3628.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 78 new files
Database: 1 new table, 1 new option
New tables
wp_admin_options_pages
New WordPress options
aop_session_handler

Browser metrics Passed 4 tests

A check of browser resources used by Admin Options Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲8216.39 ▲0.426.31 ▼0.453.12 ▲0.34
Dashboard /wp-admin2,934 ▲766.41 ▲0.11120.95 ▼15.08160.13 ▼8.34
Posts /wp-admin/edit.php2,733 ▲453.43 ▼0.0163.98 ▲0.54146.19 ▲2.12
Add New Post /wp-admin/post-new.php1,747 ▲8622.49 ▲6.06421.94 ▲12.38159.28 ▼8.23
Media Library /wp-admin/upload.php1,741 ▲465.70 ▼0.01128.06 ▼27.47188.11 ▼11.85
Add New /wp-admin/admin.php?page=admin_options_pages_create1,5785.09111.69128.89
Edit Page /wp-admin/admin.php?page=admin_options_pages_edit1,6695.40123.90108.05
Settings /wp-admin/admin.php?page=admin_options_pages_settings9932.6355.15122.34
All Options Pages /wp-admin/admin.php?page=admin_options_pages_master1,3984.8278.60128.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_admin_options_pages
  • Zombie WordPress options detected upon uninstall: 1 option
    • aop_session_handler

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=admin_options_pages_settings
    • > Notice in wp-content/plugins/admin-options-pages/App/Admin/AdminPages/View.php+118
    Undefined index: DOCUMENT_URI

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 items
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AOP\\App\\Validation' not found in wp-content/plugins/admin-options-pages/App/Admin/Notice.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AOP\\App\\Plugin' not found in wp-content/plugins/admin-options-pages/bootstrap/bootstrap.php:10
    • > PHP Fatal error
      Trait 'AOP\\App\\Options\\Fields\\TraitGeneral' not found in wp-content/plugins/admin-options-pages/App/Options/Fields/Checkbox.php on line 7
    • > PHP Fatal error
      Trait 'AOP\\App\\Singleton' not found in wp-content/plugins/admin-options-pages/App/Enqueue.php on line 5
    • > PHP Fatal error
      Trait 'AOP\\App\\Options\\Fields\\TraitGeneral' not found in wp-content/plugins/admin-options-pages/App/Options/Fields/ColorPicker.php on line 8
    • > PHP Fatal error
      Trait 'AOP\\App\\Options\\Fields\\TraitGeneral' not found in wp-content/plugins/admin-options-pages/App/Options/Fields/RadioButton.php on line 8
    • > PHP Fatal error
      Uncaught Error: Interface 'AOP\\Lib\\Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/admin-options-pages/Lib/Illuminate/Support/Collection.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'AOP\\App\\Database\\DB' not found in wp-content/plugins/admin-options-pages/App/Admin/Input.php:14
    • > PHP Fatal error
      Trait 'AOP\\App\\Options\\Fields\\TraitGeneral' not found in wp-content/plugins/admin-options-pages/App/Options/Fields/Textarea.php on line 7
    • > PHP Fatal error
      Trait 'AOP\\App\\Options\\Fields\\TraitGeneral' not found in wp-content/plugins/admin-options-pages/App/Options/Fields/TextField.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === admin-options-pages === )
Please take inspiration from this readme.txt

admin-options-pages/admin-options-pages.php 92% from 13 tests

The entry point to "Admin Options Pages" version 0.9.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin8,045 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP541,5502,6915,697
CSS5479172,048
SVG300291
JSON1006
JavaScript3013

PHP code Passed 2 tests

This is a short overview 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.35
Average class complexity13.39
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces11
Interfaces3
Traits4
Classes44
▷ Abstract classes00.00%
▷ Concrete classes44100.00%
▷ Final classes36.82%
Methods440
▷ Static methods11225.45%
▷ Public methods32373.41%
▷ Protected methods409.09%
▷ Private methods7717.50%
Functions159
▷ Named functions00.00%
▷ Anonymous functions159100.00%
Constants29
▷ Global constants00.00%
▷ Class constants29100.00%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin