89% awesome-latest-tweets

Code Review | Awesome Latest Tweets

WordPress plugin Awesome Latest Tweets scored89%from 54 tests.

About plugin

  • Plugin page: awesome-latest-tw...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 11, 2018
  • Latest release: Nov 11, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: raihancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.76ms] Passed 4 tests

An overview of server-side resources used by Awesome Latest Tweets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.92 ▼2.53
Dashboard /wp-admin3.39 ▲0.0945.04 ▼1.87
Posts /wp-admin/edit.php3.50 ▲0.1548.13 ▲1.98
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.44 ▼20.61
Media Library /wp-admin/upload.php3.31 ▲0.0837.16 ▲2.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_awesome-latest-tweets
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Latest Tweets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.351.79 ▲0.0739.80 ▲0.31
Dashboard /wp-admin2,209 ▲234.84 ▼0.04101.75 ▼23.1038.84 ▼6.12
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0433.67 ▼6.7334.44 ▼0.24
Add New Post /wp-admin/post-new.php1,533 ▲523.43 ▲5.22654.58 ▲19.9857.06 ▲6.54
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0294.29 ▼0.2142.09 ▼5.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_awesome-latest-tweets
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === awesome-latest-tweets === )
The official readme.txt might help

awesome-latest-tweets/init.php 92% from 13 tests

This is the main PHP file of "Awesome Latest Tweets" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-latest-tweets.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin413 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4115203413

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods1970.37%
▷ Protected methods00.00%
▷ Private methods829.63%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG images were found in this plugin