Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▲2.21ms] Passed 4 tests
Server-side resources used by Admin Options Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.90 ▼1.92 |
Dashboard /wp-admin | 4.05 ▲0.75 | 56.50 ▲6.73 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 55.80 ▲7.32 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.68 | 97.83 ▼3.03 |
Media Library /wp-admin/upload.php | 3.94 ▲0.71 | 41.25 ▲7.07 |
All Options Pages /wp-admin/admin.php?page=admin_options_pages_master | 4.22 | 41.16 |
Settings /wp-admin/admin.php?page=admin_options_pages_settings | 3.92 | 31.87 |
Add New /wp-admin/admin.php?page=admin_options_pages_create | 4.17 | 43.22 |
Edit Page /wp-admin/admin.php?page=admin_options_pages_edit | 4.05 | 39.51 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 78 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_admin_options_pages |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
aop_session_handler |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Admin Options Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.73 ▲0.10 | 1.88 ▼0.04 | 42.84 ▲1.62 |
Dashboard /wp-admin | 2,228 ▲48 | 5.64 ▲0.05 | 88.26 ▼8.16 | 40.00 ▼5.25 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.99 ▲0.03 | 36.65 ▼0.05 | 35.94 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,554 ▲17 | 23.18 ▼2.10 | 658.20 ▼1.65 | 51.25 ▼16.27 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.14 ▼0.04 | 102.44 ▲2.29 | 42.08 ▼2.41 |
All Options Pages /wp-admin/admin.php?page=admin_options_pages_master | 1,163 | 3.81 | 85.50 | 31.43 |
Settings /wp-admin/admin.php?page=admin_options_pages_settings | 815 | 2.03 | 25.07 | 26.73 |
Add New /wp-admin/admin.php?page=admin_options_pages_create | 1,268 | 4.35 | 100.99 | 42.27 |
Edit Page /wp-admin/admin.php?page=admin_options_pages_edit | 1,356 | 4.70 | 56.84 | 26.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_admin_options_pages
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- aop_session_handler
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=admin_options_pages_settings
- > Notice in wp-content/plugins/admin-options-pages/App/Admin/AdminPages/Settings/SubpageSettings.php+29
Undefined index: DOCUMENT_URI
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AOP\\App\\Database\\DB' not found in wp-content/plugins/admin-options-pages/App/Data.php:13
- > PHP Fatal error
Trait 'AOP\\App\\Singleton' not found in wp-content/plugins/admin-options-pages/App/Admin/AdminPages/AdminPages.php on line 14
- > 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\\Singleton' not found in wp-content/plugins/admin-options-pages/App/PluginMetaLinks.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
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
Trait 'AOP\\App\\Options\\Fields\\TraitGeneral' not found in wp-content/plugins/admin-options-pages/App/Options/Fields/Number.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/Select.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/Checkbox.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/WysiwygEditor.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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 need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== admin-options-pages ===
)
admin-options-pages/admin-options-pages.php 92% from 13 tests
The principal PHP file in "Admin Options Pages" v. 0.9.7 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin8,139 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 1,585 | 2,677 | 5,791 |
CSS | 5 | 479 | 17 | 2,048 |
SVG | 3 | 0 | 0 | 291 |
JSON | 1 | 0 | 0 | 6 |
JavaScript | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 3 | |
Traits | 4 | |
Classes | 44 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 44 | 100.00% |
▷ Final classes | 3 | 6.82% |
Methods | 445 | |
▷ Static methods | 117 | 26.29% |
▷ Public methods | 328 | 73.71% |
▷ Protected methods | 40 | 8.99% |
▷ Private methods | 77 | 17.30% |
Functions | 159 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 159 | 100.00% |
Constants | 29 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 29 | 100.00% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin