Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/evergreen-post-tweeter/ept-core.php+318
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.66ms] Passed 4 tests
An overview of server-side resources used by Evergreen Post Tweeter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.52 ▼2.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.08 ▼7.54 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.27 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.07 ▼15.44 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.91 ▼5.27 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Evergreen Post Tweeter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.45 ▼0.35 | 1.74 ▲0.06 | 53.08 ▲8.54 |
Dashboard /wp-admin | 2,192 ▲12 | 5.56 ▼0.13 | 89.21 ▼3.74 | 39.58 ▲4.49 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▼0.01 | 39.17 ▲2.98 | 39.85 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.25 ▼0.00 | 695.29 ▼13.05 | 60.45 ▲4.62 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.02 | 95.90 ▼17.43 | 42.12 ▼3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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 items
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/evergreen-post-tweeter/Include/ept-oauth.php on line 4
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/evergreen-post-tweeter/Include/ept-oauth.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/evergreen-post-tweeter/Include/ept-oauth.php on line 4
- > PHP Warning
include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/evergreen-post-tweeter/Include/ept-oauth.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/evergreen-post-tweeter/evergreen.php:13
- > PHP Warning
include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/evergreen-post-tweeter/Include/ept-oauth.php on line 4
- > PHP Parse error
syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/evergreen-post-tweeter/Include/ept-debug.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/evergreen-post-tweeter/evergreen.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/evergreen-post-tweeter/Include/ept-oauth.php on line 4
- > PHP Parse error
syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/evergreen-post-tweeter/Include/ept-debug.php on line 57
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% 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
2 plugin tags: twitter, auto tweet
evergreen-post-tweeter/evergreen.php 92% from 13 tests
The main PHP file in "Evergreen Post Tweeter" ver. 1.8.9 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("evergreen-post-tweeter.php" instead of "evergreen.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,471 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 437 | 184 | 2,173 |
CSS | 2 | 29 | 7 | 211 |
JavaScript | 3 | 8 | 5 | 62 |
HTML | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 25 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter.png | 2.43KB | 1.77KB | ▼ 27.11% |
images/icon-twitter-bird.png | 0.38KB | 0.27KB | ▼ 29.82% |
images/glass-light.png | 0.19KB | 0.11KB | ▼ 42.41% |