78% spyrowebz-slider

Code Review | Plugin Name: Spyrowebz Slider

WordPress plugin Plugin Name: Spyrowebz Sliderscored78%from 54 tests.

About plugin

  • Plugin page: spyrowebz-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Jun 19, 2014
  • Latest release: Dec 19, 2016
  • Number of updates: 15
  • Update frequency: every 61.1 days
  • Top authors: sultan_semmai@yahoo.com (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.67MB] [CPU: ▼19.63ms] Passed 4 tests

Server-side resources used by Plugin Name: Spyrowebz Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.87 ▼4.44
Dashboard /wp-admin3.34 ▼0.0051.00 ▼14.03
Posts /wp-admin/edit.php3.40 ▲0.0453.73 ▲3.68
Add New Post /wp-admin/post-new.php3.13 ▼2.7640.89 ▼59.58
Media Library /wp-admin/upload.php3.27 ▲0.0438.75 ▼0.48
Add New /wp-admin/post-new.php?post_type=spyrowebzslider3.1335.62
Spyrowebz Slider /wp-admin/edit.php?post_type=spyrowebzslider3.3136.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Plugin Name: Spyrowebz Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9914.79 ▲0.414.64 ▲2.4337.66 ▼5.10
Dashboard /wp-admin2,243 ▲665.65 ▲0.0890.85 ▼11.3939.48 ▼5.70
Posts /wp-admin/edit.php2,142 ▲422.06 ▲0.0539.22 ▲2.0836.04 ▲3.07
Add New Post /wp-admin/post-new.php1,587 ▲5618.38 ▼4.92635.69 ▼69.9560.31 ▲4.11
Media Library /wp-admin/upload.php1,445 ▲544.21 ▼0.0198.71 ▼3.1645.91 ▲5.32
Add New /wp-admin/post-new.php?post_type=spyrowebzslider2,2437.52174.2467.57
Spyrowebz Slider /wp-admin/edit.php?post_type=spyrowebzslider1,1151.9731.4927.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=spyrowebzslider
    • > Notice in wp-content/plugins/spyrowebz-slider/spyrowebz-slider.php+82
    Undefined index: eventmeta_noncename

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 register_activation_hook() in wp-content/plugins/spyrowebz-slider/spyrowebz-slider.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #0, #0, #0 in spyrowebz-slider/assets to your readme.txt
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: Spyrowebz Slider=== )
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

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

"Plugin Name: Spyrowebz Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
A plugin which Create a Slider with fade animation and also display title and descriptions of slider.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin582 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16624310
CSS1112186
JavaScript2193286

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions23
▷ Named functions23100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/arrows.png2.06KB1.20KB▼ 41.86%