80% secret-image-slide-and-tune

Code Review | Secret Image Slide and Tune

WordPress plugin Secret Image Slide and Tune scored80%from 54 tests.

About plugin

  • Plugin page: secret-image-slid...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Dec 16, 2018
  • Latest release: Sep 8, 2021
  • Number of updates: 12
  • Update frequency: every 83.1 days
  • Top authors: jbisharat13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,198 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.87MB] [CPU: ▼34.47ms] Passed 4 tests

Analyzing server-side resources used by Secret Image Slide and Tune
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1140.53 ▼3.49
Dashboard /wp-admin3.08 ▼0.2328.34 ▼25.76
Posts /wp-admin/edit.php3.08 ▼0.2825.32 ▼22.74
Add New Post /wp-admin/post-new.php3.08 ▼2.8131.20 ▼77.82
Media Library /wp-admin/upload.php3.08 ▼0.1522.42 ▼11.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Secret Image Slide and Tune
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,221 ▲46015.36 ▲0.797.68 ▲5.8341.49 ▼2.33
Dashboard /wp-admin2,368 ▲1916.19 ▲0.65108.47 ▲3.0339.52 ▼6.28
Posts /wp-admin/edit.php2,294 ▲1943.31 ▲1.3151.58 ▲15.1232.53 ▼3.59
Add New Post /wp-admin/post-new.php1,557 ▲3123.59 ▼0.02612.84 ▼61.2234.89 ▼18.18
Media Library /wp-admin/upload.php1,439 ▲394.11 ▼0.1381.88 ▼26.3943.89 ▼3.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: secret code, easter egg, raptorize, konami, slide and tune

secret-image-slide-and-tune/secret-image-slide-and-tune.php 92% from 13 tests

The principal PHP file in "Secret Image Slide and Tune" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin634 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152135309
JavaScript315169306
CSS14019

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 compressed PNG file occupies 0.11MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/raptor.png113.39KB118.43KB0.00%