84% fetch-tweets-rotator-template

Code Review | Fetch Tweets - Rotator Template

WordPress plugin Fetch Tweets - Rotator Template scored84%from 54 tests.

About plugin

  • Plugin page: fetch-tweets-rota...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Nov 20, 2016
  • Number of updates: 23
  • Update frequency: every 40.7 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,529 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.02MB] [CPU: ▼5.78ms] Passed 4 tests

An overview of server-side resources used by Fetch Tweets - Rotator Template
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.74 ▼6.97
Dashboard /wp-admin3.32 ▲0.0245.70 ▼7.24
Posts /wp-admin/edit.php3.37 ▲0.0246.53 ▼2.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.31 ▼6.81
Media Library /wp-admin/upload.php3.25 ▲0.0236.19 ▲2.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Fetch Tweets - Rotator Template
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.451.64 ▼0.1546.21 ▲1.48
Dashboard /wp-admin2,203 ▲155.83 ▲0.9696.29 ▼19.4141.28 ▼5.14
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0338.66 ▲1.2535.11 ▲0.87
Add New Post /wp-admin/post-new.php1,540 ▲2618.31 ▲0.83642.94 ▲38.3653.91 ▼3.06
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.02110.72 ▲17.4150.24 ▲8.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'FetchTweets_Template_Rotator_Base' not found in wp-content/plugins/fetch-tweets-rotator-template/rotator/class/FetchTweets_Template_Rotator.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'FetchTweets_Template_Settings' not found in wp-content/plugins/fetch-tweets-rotator-template/rotator/class/FetchTweets_Template_Settings_Rotator.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'FetchTweets_Template_Rotator' not found in wp-content/plugins/fetch-tweets-rotator-template/rotator/template.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: twitter, tweets, slider, sidebar, rotator...

fetch-tweets-rotator-template/fetch-tweets-rotator-template.php Passed 13 tests

The entry point to "Fetch Tweets - Rotator Template" version 1.1.1 is a PHP file that has certain tags in its header comment area
42 characters long description:
Rotates tweets of the Fetch Tweets plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,661 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5955711,022
PHP8180285826
Markdown21160525
CSS35553263
JSON10025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods36
▷ Static methods513.89%
▷ Public methods1541.67%
▷ Protected methods513.89%
▷ Private methods1644.44%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants16.67%
▷ Class constants1493.33%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
rotator/asset/bxslider/images/controls.png2.74KB1.42KB▼ 48.29%