Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/dop-shortcodes/dopshortcodes-frontend.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; DOPShortcodesFrontEnd has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.98ms] Passed 4 tests
Server-side resources used by DOP Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.37 ▼2.57 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.42 ▼4.61 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 44.63 ▼1.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.88 ▼19.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.01 ▼4.79 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by DOP Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲159 | 13.68 ▼0.61 | 5.57 ▲3.90 | 39.60 ▲1.32 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▼0.10 | 100.18 ▲0.31 | 38.04 ▼3.48 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.11 | 39.37 ▲1.82 | 35.43 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,525 ▼10 | 23.43 ▼0.01 | 578.11 ▼97.56 | 50.32 ▼3.63 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.26 ▲0.06 | 94.75 ▼16.88 | 41.44 ▼4.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dop-shortcodes/dopshortcodes.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: You should set the name of your plugin on the first line (
=== dop-shortcodes ===
)
dop-shortcodes/dopshortcodes.php 85% from 13 tests
"DOP Shortcodes" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("dop-shortcodes.php" instead of "dopshortcodes.php")
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 plugin3,978 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 1,862 |
CSS | 3 | 102 | 78 | 1,058 |
JavaScript | 1 | 86 | 11 | 648 |
PHP | 2 | 82 | 50 | 410 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ 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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gui/images/list-arrows.png | 2.87KB | 0.21KB | ▼ 92.83% |
assets/gui/images/list-diamonds.png | 2.85KB | 0.21KB | ▼ 92.82% |
assets/gui/images/list-checks.png | 2.94KB | 0.34KB | ▼ 88.59% |
assets/gui/images/list-circles.png | 2.87KB | 0.18KB | ▼ 93.61% |
assets/gui/images/dopil-no-image.png | 3.31KB | 0.53KB | ▼ 83.94% |