Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼139.11ms] Passed 4 tests
Analyzing server-side resources used by Get Noticed: Horizontal Subscribe Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.20 ▲12.47 |
Dashboard /wp-admin | 3.09 ▲0.04 | 40.41 ▲2.14 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 45.88 ▲5.24 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.32 ▼564.91 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 33.39 ▲1.11 |
GNT: Horizontal Subscribe /wp-admin/themes.php?page=gnt-horizontal-subscribe-settings | 3.01 | 28.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Get Noticed: Horizontal Subscribe Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 15.82 ▲0.23 | 9.82 ▲2.40 | 48.20 ▼1.26 |
Dashboard /wp-admin | 2,975 ▲41 | 5.89 ▼0.05 | 135.46 ▼5.98 | 117.79 ▼0.80 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 61.19 ▼8.40 | 90.68 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,673 ▲1 | 19.23 ▲0.28 | 362.93 ▲7.46 | 108.41 ▼4.29 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▲0.02 | 143.58 ▼9.65 | 120.43 ▼0.03 |
GNT: Horizontal Subscribe /wp-admin/themes.php?page=gnt-horizontal-subscribe-settings | 1,074 | 2.08 | 59.06 | 84.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 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/get-noticed-horizontal-subscribe-bar/gnt-horizontal-subscribe.php:30
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== get-noticed-horizontal-subscribe-bar ===
)
get-noticed-horizontal-subscribe-bar/gnt-horizontal-subscribe.php 92% from 13 tests
"Get Noticed: Horizontal Subscribe Form" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-noticed-horizontal-subscribe-bar.php" instead of "gnt-horizontal-subscribe.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin152 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 53 | 152 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected