Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼124.05ms] Passed 4 tests
An overview of server-side resources used by Sociallymap Connect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.32 ▲0.48 | 47.08 ▲16.46 |
Dashboard /wp-admin | 3.46 ▲0.40 | 67.52 ▲25.83 |
Posts /wp-admin/edit.php | 3.50 ▲0.39 | 59.40 ▲5.15 |
Add New Post /wp-admin/post-new.php | 5.75 ▲0.32 | 105.55 ▼529.64 |
Media Library /wp-admin/upload.php | 3.34 ▲0.33 | 45.72 ▲11.83 |
Editer lien /wp-admin/admin.php?page=sociallymap-entity-edit | 3.49 | 38.42 |
Documentation /wp-admin/admin.php?page=sociallymap-documentation | 3.49 | 41.00 |
Add entity /wp-admin/admin.php?page=sociallymap-entity-add | 3.60 | 43.90 |
Logs /wp-admin/admin.php?page=sociallymap-logsManager | 3.38 | 43.78 |
Supprimer lien /wp-admin/admin.php?page=sociallymap-entity-delete | 3.49 | 41.65 |
Diagnostic /wp-admin/admin.php?page=sociallymap-diagnostic | 3.49 | 44.49 |
My entities /wp-admin/admin.php?page=sociallymap-entity-list | 3.49 | 40.67 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: 4 new tables, 1 new option
New tables |
---|
wp_smc_message_published |
wp_smc_entities |
wp_smc_entities_categories |
wp_smc_logs |
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Sociallymap Connect: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲304 | 16.30 ▲0.37 | 16.21 ▲5.45 | 44.86 ▼9.43 |
Dashboard /wp-admin | 3,018 ▲84 | 6.00 ▼0.01 | 142.12 ▼12.21 | 132.05 ▲29.32 |
Posts /wp-admin/edit.php | 2,811 ▲72 | 2.72 ▲0.00 | 87.04 ▲17.67 | 90.41 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,652 ▼31 | 21.34 ▲2.61 | 298.22 ▼142.33 | 104.68 ▼5.42 |
Media Library /wp-admin/upload.php | 1,802 ▼5 | 5.07 ▲0.02 | 152.85 ▼20.24 | 138.10 ▲21.06 |
Editer lien /wp-admin/admin.php?page=sociallymap-entity-edit | 922 | 2.13 | 36.54 | 50.31 |
Documentation /wp-admin/admin.php?page=sociallymap-documentation | 1,293 | 2.10 | 59.78 | 71.57 |
Add entity /wp-admin/admin.php?page=sociallymap-entity-add | 1,527 | 2.11 | 59.05 | 64.63 |
Logs /wp-admin/admin.php?page=sociallymap-logsManager | 1,311 | 2.10 | 62.97 | 80.14 |
Supprimer lien /wp-admin/admin.php?page=sociallymap-entity-delete | 1,836 | 2.91 | 69.90 | 66.14 |
Diagnostic /wp-admin/admin.php?page=sociallymap-diagnostic | 1,271 | 2.12 | 54.20 | 64.57 |
My entities /wp-admin/admin.php?page=sociallymap-entity-list | 1,153 | 2.09 | 51.42 | 65.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_smc_logs
- wp_smc_message_published
- wp_smc_entities
- wp_smc_entities_categories
- This plugin did not uninstall successfully, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sociallymap-entity-delete
- > Notice in wp-content/plugins/connect-sociallymap/Controllers/PluginController.php+444
Undefined index: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sociallymap-entity-delete
- > Notice in wp-content/plugins/connect-sociallymap/Models/EntityRepository.php+69
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=sociallymap-entity-edit
- > Error in wp-content/plugins/connect-sociallymap/Models/Entity.php+184
Uncaught TypeError: Argument 1 passed to SociallymapConnect\Models\Entity::createFromObject() must be an instance of stdClass, null given, called in wp-content/plugins/connect-sociallymap/Models/EntityRepository.php on line 308 and defined in wp-content/plugins/connect-sociallymap/Models/Entity.php:184
Stack trace:
#0 wp-content/plugins/connect-sociallymap/Models/EntityRepository.php(308): SociallymapConnect\Models\Entity::createFromObject()
#1 wp-content/plugins/connect-sociallymap/Controllers/PluginController.php(487): SociallymapConnect\Models\EntityRepository->findOneById()
#2 [internal function]: SociallymapConnect\Controllers\PluginController->entityEdit()
#3 wp-content/plugins/connect-sociallymap/Controllers/BaseController.php(21): call_user_func_array()
#4 wp-content/plugins/connect-sociallymap/SociallymapConnectPlugin.php(139): SociallymapConnect\Controllers\BaseController::forward()
#5 /- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sociallymap-entity-delete
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sociallymap-entity-delete
- > Notice in wp-content/plugins/connect-sociallymap/Controllers/PluginController.php+447
Trying to access array offset on value of type null
SRP 0% from 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
The following issues need your attention
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/connect-sociallymap/views/partial/video.php
- > /wp-content/plugins/connect-sociallymap/views/partial/image.php
- > /wp-content/plugins/connect-sociallymap/views/documentation_en.php
- > /wp-content/plugins/connect-sociallymap/views/menu.php
- > /wp-content/plugins/connect-sociallymap/views/documentation_fr.php
- 64× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SociallymapConnect\\Enums\\SmartEnum' not found in wp-content/plugins/connect-sociallymap/Configs/SupportedPlugin/YoastConfig.php:7
- > PHP Notice
Undefined variable: page in wp-content/plugins/connect-sociallymap/views/partial/pagination.php on line 18
- > PHP Warning
require_once(wp-content/plugins/connect-sociallymap/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/connect-sociallymap/tests/Bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/connect-sociallymap/views/partial/readmore.php:5
- > PHP Fatal error
Uncaught Error: Class 'SociallymapConnect\\Enums\\SmartEnum' not found in wp-content/plugins/connect-sociallymap/Enums/Media.php:5
- > PHP Fatal error
Uncaught Error: Class 'SociallymapConnect\\Includes\\BaseRequesterDriver' not found in wp-content/plugins/connect-sociallymap/tests/Mocks/RequesterMockDriver.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/connect-sociallymap/views/diagnostic.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/connect-sociallymap/Includes/Errors/BasePluginError.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/connect-sociallymap/views/partial/imageCredit.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/connect-sociallymap/SociallymapConnectPlugin.php:632
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Options d'une entité), #2 (Exemple d'article publié)
connect-sociallymap/sociallymap.php 92% from 13 tests
Analyzing the main PHP file in "Sociallymap Connect" version 3.0.10
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("connect-sociallymap.php" instead of "sociallymap.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
There were no executable files found in this plugin4,625 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 910 | 829 | 3,873 |
PO File | 2 | 171 | 199 | 400 |
CSS | 2 | 38 | 0 | 230 |
JSON | 2 | 0 | 0 | 46 |
JavaScript | 1 | 16 | 5 | 41 |
XML | 1 | 0 | 0 | 19 |
SVG | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 232 | |
▷ Static methods | 47 | 20.26% |
▷ Public methods | 199 | 85.78% |
▷ Protected methods | 10 | 4.31% |
▷ Private methods | 23 | 9.91% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 54 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 54 | 100.00% |
▷ Public constants | 54 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.75MB with 0.30MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 74.38KB | 21.92KB | ▼ 70.53% |
screenshot-2.png | 687.83KB | 240.53KB | ▼ 65.03% |
assets/modalw/cross.png | 0.47KB | 0.59KB | 0.00% |
assets/images/icon.png | 0.38KB | 0.29KB | ▼ 23.85% |