68% simple-twitter-slider

Code Review | Simple Twitter Slider

WordPress plugin Simple Twitter Slider scored68%from 54 tests.

About plugin

  • Plugin page: simple-twitter-sl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 19, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: amybeagh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /485 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼32.83ms] Passed 4 tests

This is a short check of server-side resources used by Simple Twitter Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.93 ▼2.20
Dashboard /wp-admin3.05 ▼0.2621.90 ▼25.52
Posts /wp-admin/edit.php3.05 ▼0.3122.49 ▼26.57
Add New Post /wp-admin/post-new.php3.05 ▼2.8427.83 ▼70.10
Media Library /wp-admin/upload.php3.05 ▼0.1826.61 ▼9.11
Simple Twitter Slider /wp-admin/options-general.php?page=simple-twitter-slider/simple-twitter-slider.php3.0526.70

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Twitter Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10213.69 ▼0.6730.20 ▲28.5745.48 ▲2.49
Dashboard /wp-admin2,201 ▲215.62 ▲0.0485.89 ▼10.2139.17 ▼0.92
Posts /wp-admin/edit.php2,106 ▲32.01 ▲0.0336.74 ▼5.1435.33 ▼2.01
Add New Post /wp-admin/post-new.php1,531 ▲223.75 ▲0.63691.38 ▼12.0053.95 ▼1.71
Media Library /wp-admin/upload.php1,409 ▲94.20 ▲0.01104.20 ▲2.9046.91 ▲6.89
Simple Twitter Slider /wp-admin/options-general.php?page=simple-twitter-slider/simple-twitter-slider.php9172.0425.2534.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/simple-twitter-slider/simple-twitter-slider.php+299
    Non-static method sm_tw_slider::sm_tw_sl__tools_option_page() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=simple-twitter-slider/simple-twitter-slider.php
    • > Deprecated in wp-content/plugins/simple-twitter-slider/simple-twitter-slider.php+299
    Non-static method sm_tw_slider::sm_tw_sl__tools_option_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=simple-twitter-slider/simple-twitter-slider.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method sm_tw_slider::sm_tw_sl_tools_option() should not be called statically

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-twitter-slider/simple-twitter-slider.php:296

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: social display, twitter slider, twitter widget, twitter feeds slider display, simple twitter slider...

simple-twitter-slider/simple-twitter-slider.php Passed 13 tests

The primary PHP file in "Simple Twitter Slider" version 1.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Simple Twitter Slider - Display your Twitter Feeds on your website.

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
There were no executable files found in this plugin375 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP121242251
CSS110120
HTML1004

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.32
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/twitter_stws_icon.png0.54KB0.54KB0.18%