Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.66MB] [CPU: ▼13.90ms] Passed 4 tests
An overview of server-side resources used by Plugin Display Page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.61 ▼1.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.64 ▼0.57 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 43.21 ▲0.56 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 37.05 ▼54.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.95 ▲1.35 |
Plugin Pages /wp-admin/edit.php?post_type=pdpg_page | 3.31 | 34.06 |
Plugin Tags /wp-admin/edit-tags.php?taxonomy=pdpg_tags&post_type=pdpg_page | 3.26 | 32.89 |
Add New /wp-admin/post-new.php?post_type=pdpg_page | 3.13 | 34.99 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugin Display Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲45 | 13.25 ▼1.55 | 1.66 ▼0.01 | 42.58 ▼2.71 |
Dashboard /wp-admin | 2,237 ▲28 | 4.89 ▲0.05 | 104.70 ▲6.22 | 41.37 ▲3.98 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.02 ▼0.03 | 36.21 ▲1.26 | 31.17 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,562 ▲20 | 23.50 ▲5.37 | 618.19 ▲24.11 | 62.27 ▲6.91 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.23 ▼0.06 | 97.19 ▼7.47 | 41.83 ▼6.98 |
Plugin Pages /wp-admin/edit.php?post_type=pdpg_page | 1,093 | 1.93 | 30.16 | 30.71 |
Plugin Tags /wp-admin/edit-tags.php?taxonomy=pdpg_tags&post_type=pdpg_page | 1,262 | 2.14 | 26.95 | 28.04 |
Add New /wp-admin/post-new.php?post_type=pdpg_page | 2,034 | 3.05 | 55.15 | 71.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=pdpg_page
- > Notice in wp-content/plugins/plugin-display-page/plugindisplaypage.php+297
Undefined index: pdpg_plugin_name_nonce
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/plugin-display-page/templates/single-pdpg_page.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=pdpg_page
- > Network (severe)
wp-content/plugins/plugin-display-page/assets/wordpress-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: plugin page template, display plugin information, easily display plugin, plugin page, page template...
plugin-display-page/plugindisplaypage.php 92% from 13 tests
The main PHP script in "Plugin Display Page" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("plugin-display-page.php" instead of "plugindisplaypage.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected628 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 38 | 358 |
CSS | 3 | 28 | 32 | 213 |
JavaScript | 2 | 4 | 11 | 57 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin