Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.27ms] Passed 4 tests
This is a short check of server-side resources used by PlugTheme_List
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 43.84 ▲7.47 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.75 ▲0.09 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 48.64 ▼5.12 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 94.81 ▼6.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 35.72 ▼1.66 |
Theme /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php/custom | 3.37 | 34.18 |
Plugin /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php | 3.35 | 34.97 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by PlugTheme_List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 13.30 ▼1.51 | 1.66 ▼0.24 | 43.99 ▼0.15 |
Dashboard /wp-admin | 2,230 ▲39 | 5.83 ▲0.80 | 97.04 ▼7.93 | 36.38 ▼9.37 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.03 ▲0.02 | 36.47 ▼11.50 | 36.94 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 17.46 ▼0.18 | 652.33 ▲31.04 | 49.96 ▼22.89 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.23 ▼0.01 | 95.58 ▼6.41 | 44.07 ▼1.67 |
Theme /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php/custom | 914 | 2.03 | 27.07 | 22.54 |
Plugin /wp-admin/admin.php?page=plugtheme-list/PlugTheme_List.php | 912 | 2.17 | 27.47 | 24.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× 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/plugtheme-list/PlugTheme_List.php on line 37
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/plugtheme-list/PlugTheme_List.php on line 37
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/plugtheme-list/PlugTheme_List.php on line 37
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== plugtheme-list ===
)
plugtheme-list/PlugTheme_List.php 92% from 13 tests
"PlugTheme_List" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("plugtheme-list.php" instead of "PlugTheme_List.php")
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
There were no executable files found in this plugin907 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 221 | 608 | 907 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 1 | 1.49% |
▷ Public methods | 46 | 68.66% |
▷ Protected methods | 21 | 31.34% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin