90% inline-spoilers

Code Review | Inline Spoilers

WordPress plugin Inline Spoilers scored90%from 54 tests.

About plugin

  • Plugin page: inline-spoilers
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: May 27, 2014
  • Latest release: Aug 1, 2023
  • Number of updates: 132
  • Update frequency: every 25.4 days
  • Top authors: Umnyjcom (55.3%)sergeykuzmich (45.45%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /65,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.91ms] Passed 4 tests

This is a short check of server-side resources used by Inline Spoilers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.84 ▲7.45
Dashboard /wp-admin3.31 ▼0.0345.50 ▼12.06
Posts /wp-admin/edit.php3.36 ▲0.0044.25 ▼3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.60 ▼12.58
Media Library /wp-admin/upload.php3.23 ▲0.0033.67 ▲0.09

Server storage [IO: ▲0.05MB] [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
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inline Spoilers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.341.56 ▼0.6137.45 ▼2.09
Dashboard /wp-admin2,195 ▲185.61 ▼0.0095.44 ▲7.0238.67 ▼5.27
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0039.69 ▲4.1735.38 ▼0.11
Add New Post /wp-admin/post-new.php6,192 ▲4,66619.14 ▼4.09924.45 ▲257.8056.30 ▲7.77
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.10101.81 ▼1.6341.51 ▼5.44

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
2 plugin tags: shortcode, spoiler

inline-spoilers/inline-spoilers.php Passed 13 tests

The main PHP file in "Inline Spoilers" ver. 1.5.4 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
The plugin allows to create content spoilers with simple shortcode & guttenberg block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin216 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222084
JavaScript29578
PO File171029
CSS25325

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin