10% evergreen-post-tweeter

Code Review | Evergreen Post Tweeter

WordPress plugin Evergreen Post Tweeter scored10%from 54 tests.

About plugin

  • Plugin page: evergreen-post-tw...
  • Plugin version: 1.8.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Apr 17, 2013
  • Latest release: Oct 1, 2014
  • Number of updates: 48
  • Update frequency: every 11.1 days
  • Top authors: titopandub (97.92%)TomHarrigan (4.17%)

Code review

54 tests

User reviews

18 reviews

Install metrics

100+ active /30,971 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.52 ▼2.39
Dashboard /wp-admin3.31 ▲0.0051.08 ▼7.54
Posts /wp-admin/edit.php3.36 ▲0.0051.27 ▲0.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.07 ▼15.44
Media Library /wp-admin/upload.php3.23 ▲0.0034.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▼0.351.74 ▲0.0653.08 ▲8.54
Dashboard /wp-admin2,192 ▲125.56 ▼0.1389.21 ▼3.7439.58 ▲4.49
Posts /wp-admin/edit.php2,103 ▲32.02 ▼0.0139.17 ▲2.9839.85 ▲1.66
Add New Post /wp-admin/post-new.php1,545 ▲1423.25 ▼0.00695.29 ▼13.0560.45 ▲4.62
Media Library /wp-admin/upload.php1,400 ▼04.24 ▼0.0295.90 ▼17.4342.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP74371842,173
CSS2297211
JavaScript38562
HTML10025

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 code0.39
Average class complexity17.67
▷ Minimum class complexity4.00
▷ Maximum class complexity40.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods3088.24%
▷ Protected methods00.00%
▷ Private methods411.76%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/twitter.png2.43KB1.77KB▼ 27.11%
images/icon-twitter-bird.png0.38KB0.27KB▼ 29.82%
images/glass-light.png0.19KB0.11KB▼ 42.41%