90% wp-slidebean

Code Review | Slidebean

WordPress plugin Slidebean scored90%from 54 tests.

About plugin

  • Plugin page: wp-slidebean
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Feb 3, 2018
  • Number of updates: 12
  • Update frequency: every 55.5 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,297 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.00MB] [CPU: ▼1.87ms] Passed 4 tests

A check of server-side resources used by Slidebean
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.87 ▲4.93
Dashboard /wp-admin3.31 ▲0.0043.45 ▼7.89
Posts /wp-admin/edit.php3.36 ▲0.0045.48 ▲0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.61 ▼1.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.68 ▲0.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Slidebean
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.521.58 ▼0.5240.63 ▼4.72
Dashboard /wp-admin2,206 ▲185.87 ▼0.01107.48 ▼6.3841.99 ▼3.70
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0139.89 ▲3.9436.04 ▲2.09
Add New Post /wp-admin/post-new.php1,542 ▲2218.24 ▼5.35612.29 ▼69.3256.31 ▼0.01
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0396.88 ▼6.0241.31 ▼4.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: slides, slide, shortcode, slidebean, embed...

wp-slidebean/wp-slidebean.php Passed 13 tests

The primary PHP file in "Slidebean" version 1.0 is used by WordPress to initiate all plugin functionality
77 characters long description:
Easily embed beautiful presentations from Slidebean into your WordPress site.

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
No dangerous file extensions were detected36 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4235536

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.03KB10.17KB▼ 63.72%
screenshot-2.png59.49KB16.13KB▼ 72.88%