84% responsive-slide

Code Review | Responsive Slide

WordPress plugin Responsive Slide scored84%from 54 tests.

About plugin

  • Plugin page: responsive-slide
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Jan 29, 2017
  • Latest release: Aug 21, 2017
  • Number of updates: 8
  • Update frequency: every 25.1 days
  • Top authors: Toro_Unit (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active /2,726 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.37ms] Passed 4 tests

Analyzing server-side resources used by Responsive Slide
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.51 ▼3.69
Dashboard /wp-admin3.31 ▲0.0145.53 ▼2.89
Posts /wp-admin/edit.php3.37 ▲0.0145.96 ▼17.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.97 ▼17.15
Media Library /wp-admin/upload.php3.24 ▲0.0133.13 ▼0.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Responsive Slide: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17313.56 ▼0.818.41 ▲6.5339.65 ▼11.70
Dashboard /wp-admin2,209 ▲204.83 ▼0.0799.08 ▼15.3839.44 ▼5.95
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0435.54 ▼5.6931.76 ▼4.79
Add New Post /wp-admin/post-new.php1,534 ▲2023.46 ▲5.97642.34 ▲53.4156.71 ▲0.13
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0498.70 ▼2.0742.89 ▲0.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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/responsive-slide/responsive-slide.php:24

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 on the user side

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
7 plugin tags: powerpoint, presentation, speakerdeck, ppt, slide shows...

responsive-slide/responsive-slide.php 92% from 13 tests

"Responsive Slide" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin97 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19029
XML22025
PHP142122
JSON10015
CSS1106

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected