Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.78ms] Passed 4 tests
An overview of server-side resources used by APA Register Newsletter Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.41 | 4.63 ▼34.08 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.15 ▼48.36 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.78 ▼44.49 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.82 ▼92.17 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.87 ▼27.78 |
Documentation /wp-admin/admin.php?page=aparnf_admin_documentation | 2.08 | 6.38 |
Res Summary /wp-admin/admin.php?page=aparnf_admin_list_data | 2.08 | 6.39 |
Reg List /wp-admin/admin.php?page=apa-register-newsletter-form/newletter.php | 2.08 | 5.28 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 38 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_reg_form |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
APA Register Newsletter Form: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.17 ▼0.18 | 1.54 ▼0.15 | 28.46 ▼17.30 |
Dashboard /wp-admin | 2,230 ▲53 | 5.52 ▼0.13 | 83.30 ▼14.02 | 68.96 ▲23.64 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▼0.04 | 39.37 ▲0.07 | 40.49 ▲4.80 |
Add New Post /wp-admin/post-new.php | 1,716 ▲188 | 24.39 ▲1.46 | 691.84 ▲23.50 | 56.21 ▼8.45 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.23 ▲0.06 | 96.05 ▼2.04 | 82.83 ▲35.30 |
Documentation /wp-admin/admin.php?page=aparnf_admin_documentation | 808 | 1.96 | 22.74 | 24.35 |
Res Summary /wp-admin/admin.php?page=aparnf_admin_list_data | 843 | 2.00 | 30.20 | 30.81 |
Reg List /wp-admin/admin.php?page=apa-register-newsletter-form/newletter.php | 855 | 2.00 | 25.24 | 27.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > 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 detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apa-register-newsletter-form/newletter.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-register-newsletter-form/newletter.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.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apa-register-newsletter-form/newletter.php
- > Notice in wp-content/plugins/apa-register-newsletter-form/reg_list.php+13
Undefined index: pageid
- > GET request to /wp-admin/admin.php?page=aparnf_admin_list_data
- > Notice in wp-content/plugins/apa-register-newsletter-form/reg_summary.php+84
Undefined variable: pagination
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== apa-register-newsletter-form ===
) - Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
- Tags: You are using too many tags: 18 tag instead of maximum 10
apa-register-newsletter-form/newletter.php 85% from 13 tests
The primary PHP file in "APA Register Newsletter Form" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("apa-register-newsletter-form.php" instead of "newletter.php")
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
No dangerous file extensions were detected519 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 107 | 50 | 438 |
CSS | 1 | 15 | 4 | 81 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 12 | |
▷ Named functions | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 61.24KB | 26.71KB | ▼ 56.38% |
images/banner_big.png | 2.07KB | 1.38KB | ▼ 33.60% |
images/add_small.png | 3.10KB | 0.46KB | ▼ 85.12% |
images/edit.png | 1.52KB | 1.38KB | ▼ 9.45% |
images/hot_listing.png | 0.73KB | 0.84KB | 0.00% |