84% cc-thumbnail-logo-slider

Code Review | CC Thumbnail Logo Slider

WordPress plugin CC Thumbnail Logo Slider scored84%from 54 tests.

About plugin

  • Plugin page: cc-thumbnail-logo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Nov 7, 2016
  • Number of updates: 4
  • Update frequency: every 4.8 days
  • Top authors: sjrb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.41ms] Passed 4 tests

Server-side resources used by CC Thumbnail Logo Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0441.13 ▼3.14
Dashboard /wp-admin3.38 ▲0.0450.38 ▲1.18
Posts /wp-admin/edit.php3.50 ▲0.1053.07 ▲0.80
Add New Post /wp-admin/post-new.php5.99 ▲0.0695.80 ▼3.66
Media Library /wp-admin/upload.php3.31 ▲0.0436.72 ▲0.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by CC Thumbnail Logo Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲5314.65 ▲0.033.62 ▲1.6243.67 ▲3.81
Dashboard /wp-admin2,200 ▲205.59 ▼0.0791.20 ▲0.0962.92 ▲20.52
Posts /wp-admin/edit.php2,120 ▲201.99 ▼0.0139.80 ▲1.9035.50 ▼2.38
Add New Post /wp-admin/post-new.php1,694 ▲16622.10 ▼1.25706.84 ▲17.8944.58 ▼23.49
Media Library /wp-admin/upload.php1,417 ▲174.21 ▲0.0199.96 ▼7.7976.35 ▲29.42

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
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/cc-thumbnail-logo-slider/cc-thumbnail-logo-slider.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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #3 in cc-thumbnail-logo-slider/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

cc-thumbnail-logo-slider/cc-thumbnail-logo-slider.php Passed 13 tests

"CC Thumbnail Logo Slider" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Create a thumbnail logo slider anywhere in your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin962 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3415687
PHP12338162
CSS2161113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.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
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
cc.png15.07KB0.20KB▼ 98.67%