84% pootle-slider

Code Review | Pootle Slider

WordPress plugin Pootle Slider scored84%from 54 tests.

About plugin

  • Plugin page: pootle-slider
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-5.3.0
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Nov 11, 2019
  • Number of updates: 15
  • Update frequency: every 78.2 days
  • Top authors: shramee (86.67%)PootlePress (20%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /8,114 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.08MB] [CPU: ▼4.93ms] Passed 4 tests

Analyzing server-side resources used by Pootle Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0935.31 ▼5.93
Dashboard /wp-admin3.39 ▲0.0852.15 ▲1.53
Posts /wp-admin/edit.php3.51 ▲0.1553.11 ▲8.61
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.13 ▼14.16
Media Library /wp-admin/upload.php3.31 ▲0.0834.20 ▼1.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pootle Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.67 ▼1.081.63 ▼0.2938.00 ▼5.97
Dashboard /wp-admin2,206 ▲215.85 ▲0.0395.98 ▼5.4937.64 ▲2.45
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0639.58 ▼4.0234.69 ▼2.39
Add New Post /wp-admin/post-new.php1,533 ▲1423.09 ▼0.02644.77 ▲5.1755.50 ▲4.35
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0493.61 ▼9.9940.44 ▲0.52

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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)
Good news, no errors were detected

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 plugin_dir_url() in wp-content/plugins/pootle-slider/class-pootle-slider.php:93

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: Please add images for these screenshots: #1 (Pootle slider content block tab.), #2 (Pootle slider published.), #3 (Pootle slider in page.), #4 (Pootle slider module.)
Please take inspiration from this readme.txt

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

The entry point to "Pootle Slider" version 1.2.0 is a PHP file that has certain tags in its header comment area
25 characters long description:
The amazing Pootle slider

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin873 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP489235405
Sass1180358
JavaScript3111090
SVG10019
CSS1011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods1864.29%
▷ Protected methods00.00%
▷ Private methods1035.71%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin