84% wp-tinymce-editor-slider-shortcode

Code Review | WP tinymce editor slider shortcode

WordPress plugin WP tinymce editor slider shortcode scored84%from 54 tests.

About plugin

  • Plugin page: wp-tinymce-editor...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2020
  • Latest release: Feb 7, 2020
  • Number of updates: 10
  • Update frequency: every 1.6 days
  • Top authors: abhayjain12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.10ms] Passed 4 tests

Analyzing server-side resources used by WP tinymce editor slider shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.62 ▲0.95
Dashboard /wp-admin3.32 ▼0.0346.35 ▼15.15
Posts /wp-admin/edit.php3.37 ▲0.0145.04 ▼5.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.44 ▼12.66
Media Library /wp-admin/upload.php3.24 ▲0.0133.50 ▲0.63

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP tinymce editor slider shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.37 ▼0.353.27 ▲0.9954.28 ▲12.12
Dashboard /wp-admin2,209 ▲315.53 ▼0.1683.99 ▼25.3467.61 ▲24.56
Posts /wp-admin/edit.php2,111 ▲111.99 ▲0.0233.42 ▼5.7432.18 ▼4.28
Add New Post /wp-admin/post-new.php1,554 ▲2823.23 ▲0.23693.72 ▲27.4345.76 ▼11.59
Media Library /wp-admin/upload.php1,414 ▲114.18 ▲0.02100.70 ▲0.9474.70 ▲29.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tinymce-editor-slider-shortcode/wp-editor-shortcode.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shortcode slider, slider, slick, editor

wp-tinymce-editor-slider-shortcode/wp-editor-shortcode.php 92% from 13 tests

"WP tinymce editor slider shortcode" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-tinymce-editor-slider-shortcode.php" instead of "wp-editor-shortcode.php")

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
There were no executable files found in this plugin487 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1917256
CSS1301152
JavaScript324679

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/leftArrow.png1.17KB0.48KB▼ 59.12%
assets/images/rightArrow.png1.18KB0.47KB▼ 60.48%
ico.png0.58KB0.66KB0.00%