Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.79ms] Passed 4 tests
This is a short check of server-side resources used by Page Keys
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 46.64 ▲3.41 |
Dashboard /wp-admin | 3.33 ▲0.02 | 56.54 ▼1.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.02 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.91 ▲3.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.12 ▲2.83 |
Page Keys /wp-admin/edit.php?post_type=page&page=page_keys | 3.28 | 39.17 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Page Keys
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.66 ▲0.35 | 1.99 ▲0.21 | 46.76 ▼0.38 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▼0.02 | 93.36 ▼7.74 | 38.40 ▼3.74 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.05 ▲0.05 | 38.52 ▲2.27 | 35.73 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.55 ▲6.03 | 662.62 ▼32.16 | 53.79 ▼10.78 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.27 ▲0.07 | 113.54 ▼1.71 | 44.18 ▼0.74 |
Page Keys /wp-admin/edit.php?post_type=page&page=page_keys | 849 | 2.12 | 28.14 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please fix the following items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-keys/inc/ListTable.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'tf\\PageKeys\\Models\\SettingsErrors\\SettingsError' not found in wp-content/plugins/page-keys/inc/Models/SettingsErrors/InvalidNonce.php:10
- > PHP Fatal error
Uncaught Error: Class 'tf\\PageKeys\\Models\\SettingsErrors\\SettingsError' not found in wp-content/plugins/page-keys/inc/Models/SettingsErrors/PageKeyDeleted.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/page-keys/inc/ListTable.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'tf\\PageKeys\\Models\\SettingsErrors\\SettingsError' not found in wp-content/plugins/page-keys/inc/Models/SettingsErrors/DuplicatePageKey.php:10
- > PHP Fatal error
Uncaught Error: Class 'tf\\PageKeys\\Models\\SettingsErrors\\SettingsError' not found in wp-content/plugins/page-keys/inc/Models/SettingsErrors/NoPermissionToEdit.php:10
- > PHP Fatal error
Uncaught Error: Class 'tf\\PageKeys\\Models\\SettingsErrors\\SettingsError' not found in wp-content/plugins/page-keys/inc/Models/SettingsErrors/MissingPageKey.php:10
- > PHP Fatal error
Uncaught Error: Interface 'tf\\Autoloader\\Rule' not found in wp-content/plugins/page-keys/inc/Autoloader/NamespaceRule.php:10
- > PHP Fatal error
Uncaught Error: Class 'tf\\PageKeys\\Models\\SettingsErrors\\SettingsError' not found in wp-content/plugins/page-keys/inc/Models/SettingsErrors/InvalidPageKey.php:10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/page-keys/inc/ListTable.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
3 plugin tags: page, pages, keys
page-keys/page-keys.php Passed 13 tests
This is the main PHP file of "Page Keys" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
112 characters long description:
Register page keys, assign actual WordPress pages to them, and access each of these pages by its individual key.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,111 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 416 | 767 | 900 |
JavaScript | 2 | 27 | 3 | 118 |
PO File | 1 | 29 | 62 | 93 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 3 | 3.70% |
▷ Public methods | 71 | 87.65% |
▷ Protected methods | 4 | 4.94% |
▷ Private methods | 6 | 7.41% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected