Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.56MB] [CPU: ▲9.43ms] Passed 4 tests
A check of server-side resources used by Gianism
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 53.80 ▲3.99 |
Dashboard /wp-admin | 4.89 ▲1.59 | 57.20 ▲4.96 |
Posts /wp-admin/edit.php | 4.94 ▲1.59 | 58.92 ▲13.61 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.53 | 106.94 ▲18.47 |
Media Library /wp-admin/upload.php | 4.82 ▲1.59 | 49.74 ▲15.17 |
Gianism Setting /wp-admin/options-general.php?page=gianism | 4.74 | 50.48 |
Server storage [IO: ▲7.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,470 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Gianism
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲27 | 14.62 ▲0.42 | 1.87 ▼0.09 | 42.27 ▼4.26 |
Dashboard /wp-admin | 2,216 ▲39 | 5.68 ▲0.01 | 94.97 ▼4.22 | 37.72 ▼5.76 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.19 ▲0.17 | 39.83 ▲2.96 | 38.55 ▲3.28 |
Add New Post /wp-admin/post-new.php | 1,548 ▲14 | 23.09 ▲4.86 | 620.94 ▼28.95 | 58.05 ▼13.62 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.32 ▲0.20 | 100.34 ▲0.70 | 43.76 ▼0.94 |
Gianism Setting /wp-admin/options-general.php?page=gianism | 1,451 | 6.40 | 167.92 | 158.63 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gianism/wp-gianism.php
- 944× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/Analytics/AccountSummary.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/gianism/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/AnalyticsReporting/Segment.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/Analytics/WebPropertySummary.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/Analytics/AccountTreeResponse.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/gianism/vendor/guzzlehttp/guzzle/src/Client.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaIosAppDataStream.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/gianism/vendor/google/apiclient-services/src/Analytics/AccountPermissions.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=gianism
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=gianism
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: account, social, google, twitter, facebook...
gianism/wp-gianism.php 85% from 13 tests
The main file in "Gianism" v. 5.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gianism.php" instead of "wp-gianism.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin106,610 lines of code in 1,408 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,330 | 16,236 | 74,608 | 94,686 |
Markdown | 21 | 1,267 | 0 | 3,758 |
JSON | 27 | 0 | 0 | 2,622 |
Sass | 8 | 708 | 28 | 2,486 |
PO File | 1 | 502 | 866 | 1,337 |
SVG | 3 | 0 | 3 | 1,298 |
JavaScript | 10 | 46 | 65 | 362 |
XML | 4 | 3 | 1 | 55 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 3 | 3 | 16 | 3 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 115 | |
Interfaces | 56 | |
Traits | 20 | |
Classes | 1,226 | |
▷ Abstract classes | 232 | 18.92% |
▷ Concrete classes | 994 | 81.08% |
▷ Final classes | 66 | 6.64% |
Methods | 7,971 | |
▷ Static methods | 746 | 9.36% |
▷ Public methods | 6,908 | 86.66% |
▷ Protected methods | 515 | 6.46% |
▷ Private methods | 548 | 6.87% |
Functions | 225 | |
▷ Named functions | 54 | 24.00% |
▷ Anonymous functions | 171 | 76.00% |
Constants | 576 | |
▷ Global constants | 11 | 1.91% |
▷ Class constants | 565 | 98.09% |
▷ Public constants | 516 | 91.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/brands/line.png | 1.13KB | 1.32KB | 0.00% |
src/img/header.png | 12.40KB | 11.01KB | ▼ 11.23% |
assets/img/header.png | 11.48KB | 11.01KB | ▼ 4.12% |
assets/img/hametuha-logo.png | 1.32KB | 1.29KB | ▼ 1.85% |
src/img/brands/line.png | 2.04KB | 1.32KB | ▼ 35.17% |