84% fashion-slider

Code Review | Fashion Slider

WordPress plugin Fashion Slider scored84%from 54 tests.

About plugin

  • Plugin page: fashion-slider
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 7
  • Update frequency: every 159.0 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /516 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.07MB] [CPU: ▼4.57ms] Passed 4 tests

An overview of server-side resources used by Fashion Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.19 ▲0.98
Dashboard /wp-admin3.38 ▲0.0742.47 ▼9.77
Posts /wp-admin/edit.php3.43 ▲0.0746.35 ▼1.13
Add New Post /wp-admin/post-new.php5.98 ▲0.0979.88 ▼8.37
Media Library /wp-admin/upload.php3.30 ▲0.0735.93 ▲1.74

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Fashion Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.18 ▼1.171.65 ▼0.2243.29 ▼2.92
Dashboard /wp-admin2,220 ▲295.86 ▲0.93102.61 ▼16.8238.05 ▼5.17
Posts /wp-admin/edit.php2,117 ▲282.27 ▲0.2839.69 ▲2.8536.41 ▲3.96
Add New Post /wp-admin/post-new.php1,528 ▼517.45 ▼5.92682.06 ▼2.8355.05 ▲4.26
Media Library /wp-admin/upload.php1,415 ▲274.27 ▲0.0498.51 ▼12.5643.10 ▼1.94

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fashion-slider/fashion-slider.php:347

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: responsive fashion slider, jquery fashion slider, fashion carousel sider, fashion carousel, fashion slider...

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

The main PHP script in "Fashion Slider" version 1.0.1 is automatically included on every request by WordPress
130 characters long description:
Configure a Responsive Fashion Slider and insert it in any Page or Post as a Shortcode. Admin slide fields for title, text, image.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,544 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2179142982
CSS1247355
PHP18357207

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.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

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/bt-next.png0.73KB0.39KB▼ 46.84%
img/bt-prev.png0.74KB0.40KB▼ 45.92%