84% inline-reveal-js

Code Review | Inline Reveal JS

WordPress plugin Inline Reveal JS scored84%from 54 tests.

About plugin

  • Plugin page: inline-reveal-js
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: Jul 25, 2014
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: bretterer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.59ms] Passed 4 tests

Server-side resources used by Inline Reveal JS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.36 ▼3.25
Dashboard /wp-admin3.32 ▲0.0149.79 ▼1.94
Posts /wp-admin/edit.php3.37 ▲0.0147.70 ▲1.10
Add New Post /wp-admin/post-new.php5.90 ▲0.01109.18 ▲3.77
Media Library /wp-admin/upload.php3.24 ▲0.0136.69 ▼6.28

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Inline Reveal JS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.64 ▼0.282.47 ▲0.4544.36 ▼7.37
Dashboard /wp-admin2,206 ▲185.77 ▼0.11107.03 ▼12.2846.90 ▼4.70
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0037.37 ▼6.1234.64 ▲1.58
Add New Post /wp-admin/post-new.php1,533 ▲1423.43 ▲0.35645.26 ▼20.9276.27 ▲9.06
Media Library /wp-admin/upload.php1,385 ▼64.20 ▲0.07104.16 ▼6.1245.66 ▼1.26

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/inline-reveal-js/shortcodes/slid.es.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/inline-reveal-js/shortcodes/slid.es.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/inline-reveal-js/shortcodes/slid.es.php:3

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

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: presentation, slideshow, slides

inline-reveal-js/inline-reveal-js.php Passed 13 tests

The principal PHP file in "Inline Reveal JS" v. 1.0.0 is loaded by WordPress automatically on each request
79 characters long description:
Place a Slid.es Deck in your post/page. `[slid.es url="" width="" height=""]`.

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 plugin63 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3191646
JavaScript15717

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/slides-symbol-600x600.png10.00KB5.27KB▼ 47.25%