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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.91MB] [CPU: ▼22.92ms] Passed 4 tests
A check of server-side resources used by ReVivify Social
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.84 ▼34.37 |
Dashboard /wp-admin | 3.47 ▲0.17 | 52.95 ▲2.70 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.46 ▼1.19 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.54 | 39.45 ▼58.81 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 44.02 ▲6.57 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ReVivify Social
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲254 | 15.17 ▲0.73 | 10.29 ▲8.43 | 30.14 ▼20.33 |
Dashboard /wp-admin | 2,262 ▲71 | 5.81 ▼0.09 | 105.72 ▼5.83 | 79.97 ▲37.79 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.62 ▲0.58 | 41.13 ▼0.16 | 32.82 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6,715 ▲5,201 | 25.55 ▲7.93 | 1,000.90 ▲310.18 | 42.13 ▼18.78 |
Media Library /wp-admin/upload.php | 1,501 ▲113 | 5.04 ▲0.82 | 123.24 ▲17.86 | 51.57 ▲0.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/revivify-social/wp-revivify-social.php+112
Undefined variable: timestamp
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/revivify-social/Facebook/Exceptions/FacebookThrottleException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Helpers\\FacebookSignedRequestFromInputHelper' not found in wp-content/plugins/revivify-social/Facebook/Helpers/FacebookCanvasHelper.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/revivify-social/Facebook/HttpClients/FacebookCurlHttpClient.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/revivify-social/Facebook/GraphNodes/GraphAlbum.php:32
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/revivify-social/Facebook/GraphNodes/GraphApplication.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/revivify-social/Facebook/PseudoRandomString/RandomBytesPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PersistentData\\PersistentDataInterface' not found in wp-content/plugins/revivify-social/Facebook/PersistentData/FacebookMemoryPersistentDataHandler.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/revivify-social/Facebook/Exceptions/FacebookResumableUploadException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookRequest' not found in wp-content/plugins/revivify-social/Facebook/FacebookBatchRequest.php:37
- > PHP Fatal error
Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/revivify-social/twitteroauth/src/HmacSha1.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
revivify-social/wp-revivify-social.php 92% from 13 tests
The principal PHP file in "ReVivify Social" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("revivify-social.php" instead of "wp-revivify-social.php")
Code Analysis 97% from 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 detected9,176 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 89 | 1,366 | 6,263 | 7,039 |
CSS | 3 | 197 | 17 | 1,194 |
JavaScript | 3 | 153 | 34 | 810 |
Markdown | 4 | 34 | 0 | 69 |
JSON | 1 | 0 | 0 | 34 |
YAML | 1 | 0 | 0 | 17 |
XML | 1 | 1 | 1 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 315.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 80 | |
▷ Abstract classes | 2 | 2.50% |
▷ Concrete classes | 78 | 97.50% |
▷ Final classes | 0 | 0.00% |
Methods | 613 | |
▷ Static methods | 25 | 4.08% |
▷ Public methods | 553 | 90.21% |
▷ Protected methods | 26 | 4.24% |
▷ Private methods | 34 | 5.55% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 28 | |
▷ Global constants | 3 | 10.71% |
▷ Class constants | 25 | 89.29% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/revivify_logo_synex_social_share.png | 37.39KB | 4.62KB | ▼ 87.66% |
images/re-icon.png | 0.45KB | 0.30KB | ▼ 32.89% |