90% ve-tweets

Code Review | VE Tweets

WordPress plugin VE Tweets scored90%from 54 tests.

About plugin

  • Plugin page: ve-tweets
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Mar 8, 2017
  • Latest release: Apr 6, 2018
  • Number of updates: 11
  • Update frequency: every 34.5 days
  • Top authors: virtualemployee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.99ms] Passed 4 tests

This is a short check of server-side resources used by VE Tweets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.86 ▲3.74
Dashboard /wp-admin3.35 ▲0.0545.12 ▼6.02
Posts /wp-admin/edit.php3.40 ▲0.0447.59 ▼3.63
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.76 ▲3.34
Media Library /wp-admin/upload.php3.27 ▲0.0434.69 ▲2.36
VE Tweets /wp-admin/options-general.php?page=ve-tweets-settings3.2429.99

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for VE Tweets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.64 ▼0.724.75 ▲2.9240.47 ▲1.39
Dashboard /wp-admin2,207 ▲185.84 ▲0.9098.53 ▼21.1239.73 ▼5.21
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0340.99 ▲2.7535.38 ▲0.70
Add New Post /wp-admin/post-new.php1,523 ▲923.10 ▲5.47661.86 ▼28.5453.49 ▼2.27
Media Library /wp-admin/upload.php1,386 ▼54.21 ▼0.01103.06 ▼3.0243.87 ▼2.76
VE Tweets /wp-admin/options-general.php?page=ve-tweets-settings8352.1721.8928.24

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
The official readme.txt is a good inspiration

ve-tweets/ve-tweets.php Passed 13 tests

The primary PHP file in "VE Tweets" version 1.1 is used by WordPress to initiate all plugin functionality
48 characters long description:
Display recent tweets from your twitter account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected859 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3207392859

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.31
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods88
▷ Static methods1011.36%
▷ Public methods7787.50%
▷ Protected methods22.27%
▷ Private methods910.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin