84% super-transition-slideshow

Code Review | Super transition slideshow

WordPress plugin Super transition slideshow scored84%from 54 tests.

About plugin

  • Plugin page: super-transition-...
  • Plugin version: 9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 82
  • Update frequency: every 58.9 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /22,905 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.51ms] Passed 4 tests

Server-side resources used by Super transition slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.10 ▼2.25
Dashboard /wp-admin3.37 ▲0.0249.78 ▼8.23
Posts /wp-admin/edit.php3.43 ▲0.0644.42 ▼10.72
Add New Post /wp-admin/post-new.php5.96 ▲0.0677.70 ▼12.83
Media Library /wp-admin/upload.php3.30 ▲0.0634.61 ▼0.52
Super transition slideshow /wp-admin/options-general.php?page=super-transition-slideshow3.2630.18

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 15 new options
New WordPress options
sts_title_yes
widget_theysaidso_widget
sts_title
sts_pause
sts_dir_1
sts_dir
can_compress_scripts
widget_recent-posts
db_upgraded
sts_dir_2
...

Browser metrics Passed 4 tests

An overview of browser requirements for Super transition slideshow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7214.32 ▼0.241.75 ▲0.1243.76 ▲3.72
Dashboard /wp-admin2,202 ▲225.64 ▼0.0288.69 ▼4.4242.94 ▲5.78
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0732.44 ▼1.6432.86 ▼5.57
Add New Post /wp-admin/post-new.php1,529 ▲323.44 ▲0.27665.55 ▼18.0051.09 ▲3.29
Media Library /wp-admin/upload.php1,401 ▲44.14 ▼0.0293.01 ▼7.7641.62 ▼0.76
Super transition slideshow /wp-admin/options-general.php?page=super-transition-slideshow9361.9921.7632.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/super-transition-slideshow/super-transition-slideshow.php:58

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: super, plugin, slideshow, transition, wordpress

super-transition-slideshow/super-transition-slideshow.php 92% from 13 tests

The principal PHP file in "Super transition slideshow" v. 9.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected546 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24620314
PO File25260134
JavaScript171888
CSS11010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected