84% page-slideshow

Code Review | Page slideshow

WordPress plugin Page slideshow scored84%from 54 tests.

About plugin

  • Plugin page: page-slideshow
  • Plugin version: 0.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Jun 18, 2015
  • Number of updates: 63
  • Update frequency: every 0.3 days
  • Top authors: adriankremer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.49ms] Passed 4 tests

An overview of server-side resources used by Page slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.85 ▲4.66
Dashboard /wp-admin3.36 ▲0.0648.66 ▼0.42
Posts /wp-admin/edit.php3.41 ▲0.0548.62 ▼6.24
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.12 ▼5.89
Media Library /wp-admin/upload.php3.28 ▲0.0539.30 ▼1.41
Page slideshow /wp-admin/options-general.php?page=proseed-identifier3.2536.12

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

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

Browser metrics Passed 4 tests

Page slideshow: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.111.87 ▲0.0746.29 ▲0.98
Dashboard /wp-admin2,202 ▲255.61 ▲0.0384.68 ▼3.1743.63 ▼1.40
Posts /wp-admin/edit.php2,104 ▲11.96 ▲0.0139.14 ▼2.2636.52 ▼1.82
Add New Post /wp-admin/post-new.php1,529 ▼023.52 ▼0.16645.53 ▲6.7055.83 ▼6.70
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.04103.77 ▼1.6741.47 ▼0.78
Page slideshow /wp-admin/options-general.php?page=proseed-identifier9301.9925.0127.71

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/page-slideshow/PageSlideshow.php:14

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Screenshot of the main features of Page Slideshow. You may add images, apply text and arrange slides as desired.) image missing
You can look at the official readme.txt

page-slideshow/PageSlideshow.php 92% from 13 tests

The primary PHP file in "Page slideshow" version 0.4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("page-slideshow.php" instead of "PageSlideshow.php")

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
Everything looks great! No dangerous files found in this plugin605 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2026278
PHP114112266
JavaScript314438
SVG10019
PO File1124

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions11100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png13.49KB7.57KB▼ 43.92%