90% simple-presenter

Code Review | Simple Presenter

WordPress plugin Simple Presenter scored90%from 54 tests.

About plugin

  • Plugin page: simple-presenter
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.4.16+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9
  • WordPress version: 6.3.1
  • First release: May 28, 2018
  • Latest release: Jul 31, 2018
  • Number of updates: 16
  • Update frequency: every 4.0 days
  • Top authors: sylviavanos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.16ms] Passed 4 tests

A check of server-side resources used by Simple Presenter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1436.48 ▼1.45
Dashboard /wp-admin3.47 ▲0.1746.18 ▲2.39
Posts /wp-admin/edit.php3.59 ▲0.2448.31 ▼1.52
Add New Post /wp-admin/post-new.php6.04 ▲0.1589.39 ▼3.01
Media Library /wp-admin/upload.php3.38 ▲0.1535.20 ▲1.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Presenter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲20714.70 ▲0.501.55 ▼0.0437.41 ▼7.01
Dashboard /wp-admin2,362 ▲1746.41 ▲1.52122.50 ▲19.4738.80 ▼3.94
Posts /wp-admin/edit.php2,268 ▲1793.53 ▲1.5048.12 ▲5.9929.89 ▼6.16
Add New Post /wp-admin/post-new.php1,546 ▲3223.19 ▲5.66577.57 ▼121.4733.99 ▼22.47
Media Library /wp-admin/upload.php1,398 ▲134.11 ▼0.1180.92 ▼19.2940.51 ▼3.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The SRP test was a success

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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: pi, raspberry, monitor, presentation, digital signage

simple-presenter/simple-presenter.php Passed 13 tests

The primary PHP file in "Simple Presenter" version 1.5.1 is used by WordPress to initiate all plugin functionality
66 characters long description:
A simple way to manage presentation screens (AKA: Digital Signage)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected671 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19433671

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions31
▷ Named functions31100.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
No PNG images were found in this plugin