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.11MB] [CPU: ▼0.79ms] Passed 4 tests
A check of server-side resources used by CRUDLab Google Plus Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.25 ▼0.10 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.89 ▼3.40 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 51.45 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 95.20 ▼0.46 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.48 ▲3.49 |
Server storage [IO: ▲7.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 182 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_clgp |
New WordPress options |
---|
CLGooglePlusBtn_db_version |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CRUDLab Google Plus Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.78 ▼0.41 | 11.03 ▲9.28 | 39.48 ▼13.78 |
Dashboard /wp-admin | 2,224 ▲36 | 4.95 ▼0.93 | 94.97 ▼9.13 | 85.88 ▲44.93 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.01 ▲0.01 | 37.32 ▲0.28 | 34.38 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 18.74 ▲0.21 | 690.80 ▲59.41 | 66.94 ▲11.57 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.08 ▼0.12 | 98.40 ▼3.93 | 64.71 ▲19.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- CLGooglePlusBtn_db_version
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/crudlab-google-plus/crudlab-googleplus.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
crudlab-google-plus/crudlab-googleplus.php 92% from 13 tests
The principal PHP file in "CRUDLab Google Plus Button" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crudlab-google-plus.php" instead of "crudlab-googleplus.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
No dangerous file extensions were detected50,559 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 22 | 0 | 1 | 28,376 |
JavaScript | 11 | 1,966 | 1,973 | 11,368 |
CSS | 7 | 43 | 36 | 7,064 |
JSON | 2 | 0 | 0 | 2,139 |
LESS | 3 | 97 | 31 | 711 |
PHP | 2 | 58 | 17 | 646 |
HTML | 2 | 8 | 16 | 255 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.50 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
48 PNG files occupy 0.37MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/icons/png/Gift-Box.png | 11.49KB | 5.19KB | ▼ 54.86% |
dist/img/icons/png/Clipboard.png | 3.84KB | 2.00KB | ▼ 47.98% |
docs/assets/img/demo/browser-2x.png | 1.99KB | 0.75KB | ▼ 62.52% |
docs/assets/img/demo/html-icon.png | 4.24KB | 1.89KB | ▼ 55.49% |
dist/img/login/icon.png | 7.33KB | 3.18KB | ▼ 56.59% |