Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.58ms] Passed 4 tests
A check of server-side resources used by DreamAPI
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 38.70 ▼1.42 |
Dashboard /wp-admin | 3.46 ▲0.16 | 50.38 ▼4.69 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.95 ▲1.64 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 93.14 ▼1.84 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.89 ▲3.65 |
DreamAPI /wp-admin/tools.php?page=dreamapi_dreamobjects | 3.35 | 32.68 |
DreamObjects Media /wp-admin/upload.php?page=dreamobjects-media-library | 3.33 | 31.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DreamAPI
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.23 ▼1.14 | 1.95 ▲0.02 | 42.95 ▼3.12 |
Dashboard /wp-admin | 2,222 ▲34 | 5.85 ▲0.89 | 96.33 ▼21.36 | 37.36 ▼6.81 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.05 | 39.71 ▲4.90 | 36.10 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 18.51 ▼4.59 | 619.80 ▼81.55 | 51.45 ▼6.02 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.19 ▼0.02 | 93.42 ▼3.72 | 42.35 ▼3.06 |
DreamAPI /wp-admin/tools.php?page=dreamapi_dreamobjects | 824 | 2.21 | 24.63 | 31.76 |
DreamObjects Media /wp-admin/upload.php?page=dreamobjects-media-library | 672 | 1.53 | 6.24 | 17.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
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dreamapi/inc/dreamapiMedia.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=dreamobjects-media-library
- > Network (severe)
wp-content/plugins/dreamapi/assets/css/popup.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Requires at least: Version not formatted correctly
- Screenshots: These screenshots lack descriptions #7, #9 in dreamapi/assets to your readme.txt
dreamapi/dreamapi.php 92% from 13 tests
"DreamAPI" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin741 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 262 | 414 | 740 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 35 | |
▷ Static methods | 28 | 80.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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