100% simple-accessible-spoilers

Code Review | Simple Accessible Spoilers

WordPress plugin Simple Accessible Spoilers scored 100% from 54 tests.

About plugin

  • Plugin page: simple-accessible...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-5.9
  • WordPress version: 5.9.2
  • First release: Jul 5, 2019
  • Latest release: Mar 19, 2022
  • Number of updates: 32
  • Update frequency: every 30.9 days
  • Top authors: seshelby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,156 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼299.84ms] Passed 4 tests

Server-side resources used by Simple Accessible Spoilers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0761.82 ▲4.61
Dashboard /wp-admin3.46 ▲0.0538.56 ▼2.81
Posts /wp-admin/edit.php3.69 ▲0.0444.46 ▲1.13
Add New Post /wp-admin/post-new.php6.93 ▼0.0497.93 ▼1,200.70
Media Library /wp-admin/upload.php3.34 ▲0.0426.89 ▲3.03
Simple Accessible Spoliers Settings /wp-admin/options-general.php?page=simple-accessible-spoilers-options3.3127.51

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Accessible Spoilers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6715.87 ▲0.096.57 ▼1.562.24 ▼0.25
Dashboard /wp-admin2,950 ▲896.15 ▼0.02117.27 ▼25.33167.72 ▼1.81
Posts /wp-admin/edit.php2,698 ▲43.24 ▲0.0263.68 ▼1.91141.87 ▼5.01
Add New Post /wp-admin/post-new.php1,673 ▲1218.06 ▲1.76393.09 ▼30.84149.84 ▼4.93
Media Library /wp-admin/upload.php1,705 ▲45.55 ▲0.02146.32 ▲5.29183.05 ▼1.83
Simple Accessible Spoliers Settings /wp-admin/options-general.php?page=simple-accessible-spoilers-options9902.4153.0598.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

simple-accessible-spoilers/simple-accessible-spoilers.php Passed 13 tests

The main PHP file in "Simple Accessible Spoilers" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Create fully accessible content spoilers with a shortcode.

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
Success! There were no dangerous files found in this plugin257 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin