Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.60ms] Passed 4 tests
An overview of server-side resources used by Connections Business Directory Facilities
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.96 ▼5.65 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.98 ▼5.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.14 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.00 ▼16.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.78 ▲4.08 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Connections Business Directory Facilities: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 13.24 ▼1.35 | 2.02 ▲0.08 | 37.69 ▼5.34 |
Dashboard /wp-admin | 2,223 ▲26 | 5.83 ▲0.93 | 107.39 ▼2.54 | 42.85 ▲2.34 |
Posts /wp-admin/edit.php | 2,087 ▼13 | 2.06 ▲0.02 | 35.32 ▲0.01 | 35.21 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,550 ▼10 | 23.27 ▲5.03 | 671.80 ▲28.75 | 54.35 ▼2.01 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.27 ▲0.00 | 105.26 ▼0.82 | 42.59 ▼6.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: directory, facilities, business directory
connections-business-directory-facilities/connections-facilities.php 77% from 13 tests
The main PHP script in "Connections Business Directory Facilities" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 146 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("connections-business-directory-facilities.php" instead of "connections-facilities.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected790 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 271 | 482 | 704 |
PO File | 1 | 21 | 38 | 74 |
CSS | 1 | 1 | 1 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 23 | |
▷ Static methods | 18 | 78.26% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 images were found in this plugin