72% webslides-presentations

Code Review | Webslides Presentations

WordPress plugin Webslides Presentations scored72%from 54 tests.

About plugin

  • Plugin page: webslides-present...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Jul 1, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: stracker.phil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.09MB] [CPU: ▼17.79ms] Passed 4 tests

An overview of server-side resources used by Webslides Presentations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.97 ▼7.48
Dashboard /wp-admin3.39 ▲0.0544.93 ▼12.92
Posts /wp-admin/edit.php3.45 ▲0.0947.15 ▼0.51
Add New Post /wp-admin/post-new.php5.29 ▼0.6062.93 ▼48.86
Media Library /wp-admin/upload.php3.31 ▲0.0934.27 ▼1.91
Presentations /wp-admin/edit.php?post_type=webslides3.3637.95
New Presentation /wp-admin/post-new.php?post_type=webslides5.2857.65

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

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

Browser metrics Passed 4 tests

Webslides Presentations: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲7214.75 ▲0.101.81 ▼0.3045.37 ▲1.85
Dashboard /wp-admin2,250 ▲655.85 ▼0.01100.36 ▼2.8339.00 ▼3.17
Posts /wp-admin/edit.php2,132 ▲432.05 ▲0.0336.83 ▼3.3331.91 ▼6.30
Add New Post /wp-admin/post-new.php1,537 ▼517.83 ▼0.49673.34 ▲39.9152.29 ▼0.75
Media Library /wp-admin/upload.php1,429 ▲384.20 ▼0.00102.13 ▲1.5241.04 ▼3.72
Presentations /wp-admin/edit.php?post_type=webslides1,1022.0130.5330.51
New Presentation /wp-admin/post-new.php?post_type=webslides1,48519.13836.8829.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=webslides
    • > User deprecated in wp-includes/functions.php+5828
    Hook allowed_block_types is deprecated since version 5.8.0! Use allowed_block_types_all instead.
    • > GET request to /wp-admin/post-new.php?post_type=webslides
    • > User deprecated in wp-includes/functions.php+5828
    Hook block_editor_settings is deprecated since version 5.8.0! Use block_editor_settings_all instead.

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stracker\\WebslidesEditor\\add_filter() in wp-content/plugins/webslides-presentations/lib/page-template.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stracker\\WebslidesEditor\\add_action() in wp-content/plugins/webslides-presentations/lib/enqueue-scripts.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stracker\\WebslidesEditor\\add_action() in wp-content/plugins/webslides-presentations/lib/meta-boxes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stracker\\WebslidesEditor\\add_action() in wp-content/plugins/webslides-presentations/lib/post-type.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/webslides-presentations/templates/webslides-default.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=webslides
    • > Network (severe)
    ?post_type=webslides&p=11&_wp-find-template=true&_locale=user - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 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
2 plugin tags: slideshow, presentation

webslides-presentations/webslides-presentations.php 92% from 13 tests

The principal PHP file in "Webslides Presentations" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,766 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS34943692,937
JavaScript254677417
PHP670141298
Sass6190114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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
Namespaces1
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected