Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/simple-newsletter-signup/simple-newsletter-signup.php+60
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/simple-newsletter-signup/simple-newsletter-signup.php:60
Stack trace:
#0 wp-includes/class-wp-hook.php(310): snsf_install()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.23ms] Passed 4 tests
A check of server-side resources used by Simple Newsletter Signup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 49.16 ▲12.06 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.87 ▼3.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.74 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.52 ▼2.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.34 ▼2.34 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Newsletter Signup: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.68 ▼0.75 | 1.78 ▼0.46 | 43.63 ▲2.49 |
Dashboard /wp-admin | 2,221 ▲18 | 5.86 ▲1.00 | 110.55 ▼1.70 | 41.22 ▼0.43 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.02 ▲0.03 | 39.46 ▼1.09 | 35.40 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼14 | 17.51 ▼5.61 | 640.31 ▼19.05 | 56.50 ▲9.36 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.20 ▲0.01 | 102.45 ▼0.62 | 45.00 ▼1.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-newsletter-signup/simple-newsletter-signup-pager.php
- 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/simple-newsletter-signup/simple-newsletter-signup.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
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 (
=== simple-newsletter-signup ===
)
simple-newsletter-signup/simple-newsletter-signup.php 92% from 13 tests
The primary PHP file in "Simple Newsletter Signup" version 1.5 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 322 characters long)
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
There were no executable files found in this plugin507 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 97 | 69 | 395 |
CSS | 5 | 18 | 3 | 89 |
JavaScript | 2 | 15 | 5 | 23 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin