Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.25ms] Passed 4 tests
A check of server-side resources used by Simple Contacts Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 51.69 ▲10.92 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.65 ▼13.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.18 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.09 ▲4.96 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 35.77 ▼2.31 |
Settings /wp-admin/admin.php?page=contacts-manager-settings | 3.30 | 32.32 |
Contacts Manager /wp-admin/admin.php?page=contacts-manager | 3.30 | 32.85 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Contacts Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.71 ▼0.70 | 1.73 ▲0.00 | 37.61 ▼2.78 |
Dashboard /wp-admin | 2,236 ▲48 | 4.91 ▲0.03 | 96.75 ▼1.46 | 84.75 ▲42.39 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.00 ▼0.04 | 37.93 ▲1.98 | 35.11 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,552 ▲10 | 23.10 ▲4.93 | 658.64 ▲15.42 | 53.00 ▲2.57 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.25 ▲0.04 | 103.62 ▼4.87 | 89.06 ▲43.15 |
Settings /wp-admin/admin.php?page=contacts-manager-settings | 919 | 1.73 | 25.67 | 30.68 |
Contacts Manager /wp-admin/admin.php?page=contacts-manager | 927 | 1.84 | 25.50 | 27.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-contacts-manager/views/contacts-manager.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-contacts-manager/views/google_analytics_code.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-contacts-manager/views/contacts-manager-settings.php:12
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/simple-contacts-manager/simple-contacts-manager.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-contacts-manager/simple-contacts-manager.php:199
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-contacts-manager/views/edit_group.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-contacts-manager/views/main-container.php:15
- > PHP Warning
include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/simple-contacts-manager/simple-contacts-manager.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-contacts-manager/simple-contacts-manager.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-contacts-manager ===
)
simple-contacts-manager/simple-contacts-manager.php 92% from 13 tests
The main PHP script in "Simple Contacts Manager" version 1.3.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 335 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin856 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 108 | 17 | 685 |
JavaScript | 1 | 20 | 0 | 98 |
CSS | 1 | 2 | 0 | 73 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 36.36% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/contacts.png | 14.98KB | 0.39KB | ▼ 97.41% |