Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.28ms] Passed 4 tests
A check of server-side resources used by Apa Banner Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 7.97 ▼29.45 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.69 ▼40.04 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.41 ▼43.89 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.90 ▼91.73 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.59 ▼28.34 |
Add Data /wp-admin/admin.php?page=list-plugin-data1 | 2.05 | 5.57 |
All Data /wp-admin/admin.php?page=list-plugin-data | 2.05 | 7.06 |
Banner Slider /wp-admin/admin.php?page=apa-banner-slider/slider.php | 2.05 | 5.46 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_banners |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Apa Banner Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.22 ▼0.31 | 1.71 ▲0.13 | 30.70 ▼9.91 |
Dashboard /wp-admin | 2,227 ▲50 | 5.53 ▼0.13 | 82.41 ▼4.83 | 74.25 ▲32.04 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.99 ▼0.04 | 38.12 ▼2.00 | 38.01 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,706 ▲175 | 22.18 ▼1.01 | 669.19 ▼45.55 | 60.48 ▼7.31 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.19 ▲0.00 | 95.45 ▼3.72 | 70.45 ▲25.64 |
Add Data /wp-admin/admin.php?page=list-plugin-data1 | 933 | 1.99 | 32.42 | 33.53 |
All Data /wp-admin/admin.php?page=list-plugin-data | 887 | 1.99 | 23.74 | 26.86 |
Banner Slider /wp-admin/admin.php?page=apa-banner-slider/slider.php | 866 | 2.18 | 25.12 | 24.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the apaorder handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apa-banner-slider/slider.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the apaorder handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apa-banner-slider/slider.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+10
Undefined index: bannerName
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+11
Undefined index: link
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+12
Undefined index: banner_heading
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+13
Undefined index: banner_subheading
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+169
Undefined variable: error_message
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+171
Undefined variable: result
- > GET request to /wp-admin/admin.php?page=list-plugin-data1
- > Notice in wp-content/plugins/apa-banner-slider/addBanner.php+171
Trying to get property 'imgPath' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apa-banner-slider/slider.php
- > Notice in wp-content/plugins/apa-banner-slider/banners.php+20
Undefined index: pageid
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apa-banner-slider/slider.php
- > Notice in wp-content/plugins/apa-banner-slider/banners.php+82
Undefined variable: pagination
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Plugin Name: You should set the name of your plugin on the first line (
=== apa-banner-slider ===
)
apa-banner-slider/slider.php 92% from 13 tests
The principal PHP file in "Apa Banner Slider" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("apa-banner-slider.php" instead of "slider.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
No dangerous file extensions were detected466 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 129 | 38 | 385 |
CSS | 1 | 15 | 4 | 81 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 compressed PNG files occupy 0.15MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/annual_reports.png | 0.72KB | 0.74KB | 0.00% |
images/hot_listing.png | 0.73KB | 0.84KB | 0.00% |
images/not_special.png | 0.66KB | 0.68KB | 0.00% |
images/banner_big.png | 2.07KB | 1.38KB | ▼ 33.60% |
images/position.png | 0.71KB | 0.69KB | ▼ 3.96% |