72% pov-slider

Code Review | POV Sliders

WordPress plugin POV Sliders scored72%from 54 tests.

About plugin

  • Plugin page: pov-slider
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2013
  • Latest release: Apr 28, 2013
  • Number of updates: 9
  • Update frequency: every 0.4 days
  • Top authors: whatadewitt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /743 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.02MB] [CPU: ▼9.90ms] Passed 4 tests

Server-side resources used by POV Sliders
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.20 ▼16.60
Dashboard /wp-admin3.34 ▼0.0151.18 ▼19.55
Posts /wp-admin/edit.php3.39 ▲0.0356.14 ▲1.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.36 ▼1.29
Media Library /wp-admin/upload.php3.26 ▲0.0335.70 ▼2.16
POV Slider /wp-admin/themes.php?page=pov_slider_featured_homepage3.3539.68

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by POV Sliders
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.67 ▲0.461.71 ▼0.5544.03 ▼11.25
Dashboard /wp-admin2,199 ▲255.68 ▲0.0484.15 ▼20.1638.78 ▼8.64
Posts /wp-admin/edit.php2,104 ▲42.14 ▲0.1441.25 ▲0.3035.04 ▼0.41
Add New Post /wp-admin/post-new.php1,531 ▲323.10 ▼0.08633.48 ▼54.7665.91 ▲10.60
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.08100.17 ▼12.5345.12 ▼6.15
POV Slider /wp-admin/themes.php?page=pov_slider_featured_homepage8501.8435.8627.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/themes.php?page=pov_slider_featured_homepage
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=pov_slider_featured_homepage
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=pov_slider_featured_homepage
    • > Notice in wp-content/plugins/pov-slider/views/homepage_slider.php+19
    Undefined variable: error
    • > GET request to /wp-admin/themes.php?page=pov_slider_featured_homepage
    • > Notice in wp-content/plugins/pov-slider/views/homepage_slider.php+29
    Undefined variable: wp_http_referer

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pov-slider/pov_slider.php:41

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/themes.php?page=pov_slider_featured_homepage
    • > Network (severe)
    wp-content/plugins/pov_slider/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/themes.php?page=pov_slider_featured_homepage
    • > Network (severe)
    wp-content/plugins/pov_slider/js/admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === pov-slider === )
Please take inspiration from this readme.txt

pov-slider/pov_slider.php 92% from 13 tests

"POV Sliders" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pov-slider.php" instead of "pov_slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected439 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1411200
PHP24243134
JavaScript16062
Markdown115026
PO File10017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png49.95KB19.25KB▼ 61.46%