Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▲1.42ms] Passed 4 tests
An overview of server-side resources used by GAPlugins - Socials
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.81 ▲5.21 |
Dashboard /wp-admin | 3.52 ▲0.17 | 56.57 ▼6.65 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 59.32 ▲8.70 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 100.31 ▼1.17 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 44.51 ▲8.29 |
Share /wp-admin/admin.php?page=gap-admin-page-share | 3.41 | 39.18 |
Follow /wp-admin/admin.php?page=gap-admin-page-follow | 3.41 | 39.43 |
GAPlugin /wp-admin/admin.php?page=gap-admin-page | 3.41 | 38.28 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
gap_follow |
db_upgraded |
theysaidso_admin_options |
gap_share |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GAPlugins - Socials
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.23 ▼0.11 | 1.80 ▲0.24 | 36.78 ▼4.13 |
Dashboard /wp-admin | 2,218 ▲40 | 5.55 ▼0.17 | 84.52 ▼28.41 | 72.63 ▲31.67 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 1.96 ▼0.07 | 40.22 ▲3.44 | 38.14 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.15 ▼0.31 | 697.15 ▲7.61 | 58.46 ▼0.08 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.16 ▼0.06 | 107.43 ▲1.92 | 70.21 ▲23.48 |
Share /wp-admin/admin.php?page=gap-admin-page-share | 1,016 | 1.95 | 37.61 | 43.85 |
Follow /wp-admin/admin.php?page=gap-admin-page-follow | 1,198 | 2.29 | 35.10 | 35.26 |
GAPlugin /wp-admin/admin.php?page=gap-admin-page | 818 | 2.00 | 24.27 | 29.54 |
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 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- gap_follow
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/socials-ga/gaplugin-socials-plugin.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GAPlugin\\AdminSocials' not found in wp-content/plugins/socials-ga/includes/Follow.php:10
- > PHP Fatal error
Uncaught Error: Class 'GAPlugin\\AdminSocials' not found in wp-content/plugins/socials-ga/includes/Share.php:10
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: instagram, facebook, socials, navigation, multisite...
socials-ga/gaplugin-socials-plugin.php 85% from 13 tests
The main PHP file in "GAPlugins - Socials" ver. 0.01.00.01 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("socials-ga.php" instead of "gaplugin-socials-plugin.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
Everything looks great! No dangerous files found in this plugin898 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 55 | 194 | 494 |
CSS | 2 | 20 | 21 | 317 |
PO File | 1 | 19 | 24 | 46 |
Markdown | 1 | 11 | 0 | 30 |
SVG | 1 | 0 | 0 | 6 |
JavaScript | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 27 | 93.10% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin