10% kmo-slideshow

Code Review | KMO Slideshow

WordPress plugin KMO Slideshow scored10%from 54 tests.

About plugin

  • Plugin page: kmo-slideshow
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2015
  • Latest release: Apr 27, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kmo_design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /904 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/kmo-slideshow/kmo-slideshow.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; kmo_slideshow has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼58.94ms] Passed 4 tests

A check of server-side resources used by KMO Slideshow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.16 ▼36.78
Dashboard /wp-admin2.09 ▼1.255.98 ▼57.16
Posts /wp-admin/edit.php2.09 ▼1.266.25 ▼44.11
Add New Post /wp-admin/post-new.php2.09 ▼3.795.58 ▼97.71
Media Library /wp-admin/upload.php2.09 ▼1.145.70 ▼34.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for KMO Slideshow
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.11 ▼1.325.26 ▲3.2044.06 ▼2.48
Dashboard /wp-admin2,224 ▲215.88 ▲0.98109.26 ▲2.7036.14 ▼8.89
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0535.38 ▼8.1635.17 ▲2.32
Add New Post /wp-admin/post-new.php1,545 ▼023.24 ▼0.07659.82 ▲40.6156.38 ▲5.37
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.00114.53 ▲7.1247.76 ▲2.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/kmo-slideshow/kmo-slideshow.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; kmo_slideshow has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kmo-slideshow/kmo-slideshow.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: folder, jquery, slideshow, slides

kmo-slideshow/kmo-slideshow.php Passed 13 tests

The main PHP file in "KMO Slideshow" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
A plugin to display a gallery from a folder of images.

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
Good job! No executable or dangerous file extensions detected115 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1201187
CSS14027
JavaScript1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 were not PNG files found in your plugin