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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.47ms] Passed 4 tests
An overview of server-side resources used by STApp Divider Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.91 ▲1.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.03 ▼1.10 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.86 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.67 ▼6.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.06 ▼3.49 |
Pro Version /wp-admin/admin.php?page=stappdiv_pro_version | 3.27 | 26.53 |
Overview /wp-admin/admin.php?page=stappdiv | 3.25 | 40.63 |
New /wp-admin/admin.php?page=stappdiv_new | 3.29 | 31.72 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_stapp_divider_settings |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
stapp_divider_version |
db_upgraded |
can_compress_scripts |
stapp_divider_counter |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by STApp Divider Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲151 | 13.42 ▼0.94 | 8.78 ▲7.22 | 37.76 ▲1.01 |
Dashboard /wp-admin | 2,222 ▲42 | 5.49 ▼0.21 | 83.11 ▼9.19 | 37.41 ▼2.69 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.04 | 35.86 ▲1.38 | 35.72 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.65 ▲0.63 | 670.72 ▼20.42 | 61.62 ▲8.42 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.19 ▼0.02 | 104.28 ▼9.27 | 45.94 ▼0.61 |
Pro Version /wp-admin/admin.php?page=stappdiv_pro_version | 1,361 | 1.99 | 21.97 | 37.50 |
Overview /wp-admin/admin.php?page=stappdiv | 924 | 2.14 | 23.99 | 61.33 |
New /wp-admin/admin.php?page=stappdiv_new | 1,656 | 1.80 | 30.19 | 62.26 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include_once(): Failed opening 'STAPP_DIVIDER_PLUGIN_DIR/includes/db/stapp_divider_writeData.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/stapp-divider/admin/admin.php on line 3
- > PHP Warning
require_once(STAPP_DIVIDER_PLUGIN_DIR/includes/stapp_divider_plugin.php): failed to open stream: No such file or directory in wp-content/plugins/stapp-divider/stapp_divider_settings.php on line 4
- > PHP Warning
include_once(STAPP_DIVIDER_PLUGIN_DIR/includes/db/stapp_divider_writeData.php): failed to open stream: No such file or directory in wp-content/plugins/stapp-divider/admin/admin.php on line 3
- > PHP Warning
include_once(STAPP_DIVIDER_PLUGIN_DIR/includes/db/stapp_divider_readData.php): failed to open stream: No such file or directory in wp-content/plugins/stapp-divider/includes/stapp_activate_plugin.php on line 3
- > PHP Warning
Use of undefined constant STAPP_DIVIDER_PLUGIN_DIR - assumed 'STAPP_DIVIDER_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/stapp-divider/stapp_divider_settings.php on line 4
- > PHP Warning
Use of undefined constant STAPP_DIVIDER_PLUGIN_DIR - assumed 'STAPP_DIVIDER_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/stapp-divider/admin/admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/stapp-divider/admin/menu/ProVersionSubMenuHTML.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/stapp-divider/admin/menu/CreateSubMenuHTML_Color.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/stapp-divider/admin/menu/CreateSubMenuHTML.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/stapp-divider/admin/menu/CreateSubMenuHTML_General.php:2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=stappdiv_pro_version
- > Network (severe)
includes/css/proversion_stylesheet.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: headline, animation, separator, divider
stapp-divider/stapp_divider.php 85% from 13 tests
"STApp Divider Plugin" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: The principal plugin file should be the same as the plugin slug ("stapp-divider.php" instead of "stapp_divider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,625 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 262 | 49 | 1,242 |
CSS | 4 | 150 | 21 | 665 |
JavaScript | 3 | 141 | 16 | 443 |
HTML | 2 | 8 | 12 | 221 |
SQL | 1 | 0 | 0 | 54 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 48 | 60.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 8 | 40.00% |
▷ Class constants | 12 | 60.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected