79% mpcx-slider

Code Review | Slider

WordPress plugin Slider scored79%from 54 tests.

About plugin

  • Plugin page: mpcx-slider
  • Plugin version: 1.3.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.3-4.9
  • WordPress version: 6.3.1
  • First release: Apr 24, 2015
  • Latest release: Nov 10, 2017
  • Number of updates: 42
  • Update frequency: every 22.2 days
  • Top authors: DeusTron (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /6,909 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.59 ▼2.67
Dashboard /wp-admin3.37 ▲0.0647.95 ▼2.06
Posts /wp-admin/edit.php3.48 ▲0.1250.46 ▲5.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.86 ▲2.41
Media Library /wp-admin/upload.php3.29 ▲0.0635.61 ▲2.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
mpcx_slider
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.67 ▼1.085.17 ▲3.0840.66 ▼8.38
Dashboard /wp-admin2,203 ▲185.80 ▲0.94107.36 ▼10.2337.73 ▼7.13
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.0540.89 ▲6.6334.27 ▲2.57
Add New Post /wp-admin/post-new.php1,536 ▲123.57 ▲0.50606.27 ▼95.3258.73 ▼4.71
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.05100.09 ▼2.8543.93 ▼0.07

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mpcx-slider/mpcx-slider.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mpcx-slider/update.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: images, slider, random, jquery, shortcode...

mpcx-slider/mpcx-slider.php Passed 13 tests

"Slider" version 1.3.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
27 characters long description:
A responsive Slider 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
There were no executable files found in this plugin3,093 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP46622419
CSS2032
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity77.00
▷ Minimum class complexity77.00
▷ Maximum class complexity77.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods26.45%
▷ Protected methods2993.55%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/prev.png2.06KB1.97KB▼ 4.37%
public/images/next.png2.02KB2.11KB0.00%