94% mitsol-tweets

Code Review | Mitsol tweets

WordPress plugin Mitsol tweets scored 94% from 54 tests.

About plugin

  • Plugin page: mitsol-tweets
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.6.2
  • WordPress version: 5.8.1
  • First release: Aug 7, 2014
  • Latest release: Mar 10, 2021
  • Number of updates: 27
  • Update frequency: every 89.2 days
  • Top authors: mitsol (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 1,775 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼141.93ms] Passed 4 tests

Server-side resources used by Mitsol tweets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2637.59 ▲11.56
Dashboard /wp-admin3.20 ▲0.1550.03 ▲0.04
Posts /wp-admin/edit.php3.25 ▲0.1550.48 ▲2.33
Add New Post /wp-admin/post-new.php5.56 ▲0.1393.96 ▼573.71
Media Library /wp-admin/upload.php3.15 ▲0.1436.01 ▲3.62

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 3 new options
New WordPress options
ms_twwall_plugin_postlayout_settings
ms_twwall_plugin_general_settings
ms_twwall_plugin_color_settings

Browser metrics Passed 4 tests

Mitsol tweets: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,701 ▲10716.17 ▲0.478.78 ▼0.8446.39 ▼1.20
Dashboard /wp-admin2,992 ▲615.91 ▼0.07147.29 ▼7.34117.28 ▼1.32
Posts /wp-admin/edit.php2,761 ▲222.68 ▲0.0171.89 ▼1.7498.31 ▲3.36
Add New Post /wp-admin/post-new.php1,606 ▲2518.77 ▲0.55386.06 ▼22.61108.36 ▼10.19
Media Library /wp-admin/upload.php1,829 ▲195.05 ▲0.01160.80 ▲8.62125.42 ▲3.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mitsol-tweets/admin/twitteroauth/twitteroauth.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mitsol-tweets/twitteroauth/twitteroauth.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mitsol-tweets/mitsol-tweets.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Mitsol tweets" version 1.1
111 characters long description:
Shows user tweets, hashtag tweets and matched search string tweets in slider and vertical display(free version)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,593 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2963355,387
PHP73817762,206

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.17
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes416.67%
▷ Concrete classes2083.33%
▷ Final classes00.00%
Methods152
▷ Static methods2013.16%
▷ Public methods13085.53%
▷ Protected methods42.63%
▷ Private methods1811.84%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin