90% simple-accessible-spoilers

Code Review | Simple Accessible Spoilers

WordPress plugin Simple Accessible Spoilers scored90%from 54 tests.

About plugin

  • Plugin page: simple-accessible...
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Sep 2, 2023
  • Number of updates: 40
  • Update frequency: every 38.0 days
  • Top authors: seshelby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,576 total downloads

Benchmarks

Plugin footprint 83% from 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.04MB] [CPU: ▼6.12ms] 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.50 ▲0.0443.41 ▲6.73
Dashboard /wp-admin3.35 ▲0.0545.68 ▼5.04
Posts /wp-admin/edit.php3.40 ▲0.0446.77 ▲3.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.59 ▼21.57
Media Library /wp-admin/upload.php3.27 ▲0.0437.20 ▼0.94
Simple Accessible Spoliers Settings /wp-admin/options-general.php?page=simple-accessible-spoilers-options3.2431.37

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, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

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 /2,915 ▲15413.67 ▼0.958.74 ▲6.8531.40 ▼12.95
Dashboard /wp-admin2,241 ▲645.65 ▲0.1181.96 ▼18.7540.03 ▼2.98
Posts /wp-admin/edit.php2,106 ▲32.03 ▼0.0136.74 ▼1.9430.45 ▼0.16
Add New Post /wp-admin/post-new.php1,531 ▼723.28 ▲5.15666.13 ▲5.9359.36 ▼8.22
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0296.52 ▼20.2648.87 ▼0.37
Simple Accessible Spoliers Settings /wp-admin/options-general.php?page=simple-accessible-spoilers-options7841.9924.5526.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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

Optimizations

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.11 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 plugin263 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15629185
CSS27647
JavaScript19531

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.26
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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