84% monoslideshow

Code Review | Monoslideshow

WordPress plugin Monoslideshow scored84%from 54 tests.

About plugin

  • Plugin page: monoslideshow
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Apr 28, 2014
  • Latest release: Apr 28, 2014
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: monokai_nl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,175 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.30ms] Passed 4 tests

Analyzing server-side resources used by Monoslideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.52 ▲2.23
Dashboard /wp-admin3.31 ▲0.0048.94 ▲1.95
Posts /wp-admin/edit.php3.36 ▲0.0046.18 ▲0.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.16 ▼17.80
Media Library /wp-admin/upload.php3.23 ▲0.0037.29 ▲3.17

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
monoslideshow-height
monoslideshow-width
monoslideshow-preset
monoslideshow-resize
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Monoslideshow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.151.86 ▲0.3943.84 ▲3.78
Dashboard /wp-admin2,192 ▲155.54 ▼0.0783.69 ▼4.2838.98 ▼2.33
Posts /wp-admin/edit.php2,097 ▼02.03 ▲0.0935.48 ▼1.1633.78 ▼3.50
Add New Post /wp-admin/post-new.php1,526 ▼1123.19 ▲5.03697.88 ▲27.0654.62 ▼7.83
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.07115.08 ▲15.6246.99 ▲4.65

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/monoslideshow/monoslideshow.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: customize, ios, slideshow, iphone, ipad...

monoslideshow/monoslideshow.php Passed 13 tests

Analyzing the main PHP file in "Monoslideshow" version 1.0
104 characters long description:
Monoslideshow For Wordpress replaces the standard photo gallery created in Wordpress with Monoslideshow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin789 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
XML1136448
PHP28034243
JavaScript115098

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin