Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/convatic/includes/cv-functions.php+190
Non-static method CV_Communication::valid_api_key() should not be called statically
Server metrics [RAM: ▲0.20MB] [CPU: ▼144.42ms] Passed 4 tests
This is a short check of server-side resources used by Convatic
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.30 | 39.70 ▲16.19 |
Dashboard /wp-admin | 3.25 ▲0.19 | 51.69 ▲1.52 |
Posts /wp-admin/edit.php | 3.37 ▲0.25 | 50.35 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 94.95 ▼581.73 |
Media Library /wp-admin/upload.php | 3.20 ▲0.19 | 36.49 ▲2.36 |
All Comments /wp-admin/edit-comments.php | 3.26 | 40.12 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 2 new options
New WordPress options |
---|
stc_enabled |
stb_enabled |
Browser metrics Passed 4 tests
Convatic: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,741 ▲145 | 15.82 ▲0.16 | 10.59 ▲1.53 | 45.44 ▼12.62 |
Dashboard /wp-admin | 3,008 ▲82 | 5.95 ▲0.02 | 145.69 ▼12.30 | 117.00 ▼3.51 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.70 ▼0.00 | 67.05 ▼3.78 | 98.92 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,707 ▲24 | 18.53 ▼0.35 | 393.36 ▲27.31 | 120.42 ▲6.12 |
Media Library /wp-admin/upload.php | 1,848 ▲38 | 5.00 ▼0.03 | 161.23 ▲12.77 | 137.89 ▲17.86 |
Convatic /wp-admin/convatic.php | 26 | 0.90 | 0.11 | 10.59 |
All Comments /wp-admin/edit-comments.php | 2,464 | 2.86 | 68.66 | 105.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- stc_enabled
- stb_enabled
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convatic/includes/class-cv-cpts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_comments_number() in wp-content/plugins/convatic/includes/template/comments.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convatic/includes/class-cv-cpts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function cv_valid_api_key() in wp-content/plugins/convatic/includes/class-cv-communication.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convatic/includes/class-cv-ajax.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convatic/includes/class-cv-cpts.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/convatic.php
- > Network (severe)
wp-admin/convatic.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: social, conversation, comment spam, facebook, twitter...
convatic/convatic.php 92% from 13 tests
This is the main PHP file of "Convatic" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 217 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,544 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 28 | 1,114 | 2,485 | 5,955 |
PHP | 7 | 258 | 388 | 863 |
Sass | 1 | 77 | 0 | 371 |
CSS | 2 | 0 | 4 | 289 |
HTML | 1 | 2 | 0 | 53 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 4 | 10.81% |
▷ Private methods | 1 | 2.70% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/template/img/check-icon.png | 2.96KB | 0.41KB | ▼ 86.25% |
includes/template/img/x-icon.png | 2.95KB | 0.41KB | ▼ 86.11% |
includes/template/img/icon-image.png | 3.45KB | 0.74KB | ▼ 78.65% |
includes/template/img/twitter.png | 3.58KB | 0.76KB | ▼ 78.63% |
includes/template/img/facebook.png | 3.29KB | 0.56KB | ▼ 82.90% |