84% paged-post-slider

Code Review | Paged Post Slider

WordPress plugin Paged Post Slider scored84%from 54 tests.

About plugin

  • Plugin page: paged-post-slider
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Nov 25, 2014
  • Number of updates: 36
  • Update frequency: every 14.5 days
  • Top authors: spencejosiah (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /12,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.30MB] [CPU: ▼24.50ms] Passed 4 tests

An overview of server-side resources used by Paged Post Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.04 ▼10.12
Dashboard /wp-admin3.35 ▲0.0052.01 ▼18.70
Posts /wp-admin/edit.php3.40 ▲0.0452.61 ▼4.37
Add New Post /wp-admin/post-new.php4.64 ▼1.2544.76 ▼64.79
Media Library /wp-admin/upload.php3.27 ▲0.0437.72 ▲0.40
Paged Post Slider /wp-admin/options-general.php?page=ppsoptions3.2441.23

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Paged Post Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.171.72 ▲0.2445.67 ▲6.30
Dashboard /wp-admin2,196 ▲285.57 ▼0.1082.00 ▼10.2139.93 ▼3.03
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0236.84 ▲0.2536.40 ▼5.61
Add New Post /wp-admin/post-new.php1,529 ▼023.83 ▲0.56696.98 ▲61.9364.19 ▲2.92
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0697.02 ▼7.9546.81 ▲5.37
Paged Post Slider /wp-admin/options-general.php?page=ppsoptions9441.9924.6044.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paged-post-slider/paged-post-slider.php:25

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: pagination, ajax, paged posts, slider, nextpage...

paged-post-slider/paged-post-slider.php 92% from 13 tests

The primary PHP file in "Paged Post Slider" version 1.5.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 273 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin348 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15343221
JavaScript1171676
CSS19151

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions7
▷ Named functions7100.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
No PNG files were detected