Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.20MB] [CPU: ▼17.85ms] Passed 4 tests
Server-side resources used by Custom Shape Dividers create dividers in a easy way
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.65 ▲1.98 |
Dashboard /wp-admin | 3.10 ▼0.21 | 28.26 ▼20.83 |
Posts /wp-admin/edit.php | 3.24 ▼0.12 | 31.65 ▼16.47 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.41 | 64.83 ▼23.72 |
Media Library /wp-admin/upload.php | 3.19 ▼0.05 | 27.06 ▼10.36 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_customshapebuild |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Custom Shape Dividers create dividers in a easy way: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.73 ▲0.34 | 1.66 ▼1.38 | 43.13 ▼4.41 |
Dashboard /wp-admin | 2,232 ▲47 | 4.89 ▼0.89 | 98.73 ▼16.46 | 35.09 ▼6.39 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.06 ▲0.02 | 34.60 ▼8.43 | 36.16 ▼1.33 |
Add New Post /wp-admin/post-new.php | 6,638 ▲5,115 | 27.79 ▲4.60 | 1,005.91 ▲336.30 | 76.50 ▲21.19 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.33 ▲0.13 | 97.86 ▼4.73 | 42.91 ▼2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_customshapebuild
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 0% 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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-shape-dividers/inc/db.php
- > /wp-content/plugins/custom-shape-dividers/uninstall.php
- > /wp-content/plugins/custom-shape-dividers/inc/customshapedividershome.php
- > /wp-content/plugins/custom-shape-dividers/customshapedividers.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/custom-shape-dividers/inc/metaboxes.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
custom-shape-dividers/customshapedividers.php 77% from 13 tests
This is the main PHP file of "Custom Shape Dividers create dividers in a easy way" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-shape-dividers.php" instead of "customshapedividers.php")
- Description: The description should be shorter than 140 characters (currently 167 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin1,143 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 35 | 7 | 535 |
PHP | 6 | 67 | 28 | 343 |
JavaScript | 1 | 43 | 2 | 265 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/header.png | 20.64KB | 2.99KB | ▼ 85.51% |