83% lord-linus-chop-slider

Code Review | Lord linus chop slider

WordPress plugin Lord linus chop slider scored83%from 54 tests.

About plugin

  • Plugin page: lord-linus-chop-s...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2013
  • Latest release: Apr 21, 2013
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: lordlinus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,332 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.12ms] Passed 4 tests

This is a short check of server-side resources used by Lord linus chop slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.49 ▼4.04
Dashboard /wp-admin3.32 ▼0.0248.24 ▼14.40
Posts /wp-admin/edit.php3.37 ▲0.0252.98 ▲3.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.35 ▼9.00
Media Library /wp-admin/upload.php3.25 ▲0.0235.76 ▲2.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lord linus chop slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲9513.22 ▼1.155.06 ▲3.3940.58 ▼0.40
Dashboard /wp-admin2,240 ▲374.84 ▼0.05112.00 ▲3.1041.95 ▼4.99
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0139.47 ▼0.6935.68 ▼3.82
Add New Post /wp-admin/post-new.php1,544 ▼123.10 ▼0.10589.62 ▼74.4649.09 ▲0.52
Media Library /wp-admin/upload.php1,410 ▲134.17 ▼0.1096.95 ▼9.3742.15 ▼6.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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)
Good news, no errors were detected

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
Please fix the following items
  • 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/lord-linus-chop-slider/lordlinus-chop-slider.php:67

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid URI ("")
  • Screenshots: These screenshots do not have images: #1 (First Screen Shot), #2 ()
The official readme.txt is a good inspiration

lord-linus-chop-slider/lordlinus-chop-slider.php 92% from 13 tests

The main PHP file in "Lord linus chop slider" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("lord-linus-chop-slider.php" instead of "lordlinus-chop-slider.php")

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
There were no executable files found in this plugin275 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1714151
PHP1614101
JavaScript352823

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png269.30KB131.31KB▼ 51.24%
images/caption-bg.png0.91KB0.09KB▼ 89.73%
images/podium.png25.37KB16.63KB▼ 34.43%
images/d-bg.png0.91KB0.09KB▼ 89.71%
images/navi.png1.54KB0.78KB▼ 49.30%