78% tutsup-simple-modal

Code Review | Tutsup Modal

WordPress plugin Tutsup Modal scored78%from 54 tests.

About plugin

  • Plugin page: tutsup-simple-modal
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Sep 11, 2014
  • Number of updates: 25
  • Update frequency: every 0.0 days
  • Top authors: todoespacoonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by Tutsup Modal
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0238.66 ▼3.77
Dashboard /wp-admin3.59 ▲0.0352.53 ▼0.02
Posts /wp-admin/edit.php3.71 ▲0.0355.34 ▲2.48
Add New Post /wp-admin/post-new.php6.19 ▲0.0499.28 ▼10.86
Media Library /wp-admin/upload.php3.51 ▲0.0239.56 ▲2.22
Tutsup Modal /wp-admin/options-general.php?page=tutsup-simple-modal3.4934.61

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tutsup Modal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.62 ▲0.241.66 ▼0.2745.02 ▼2.02
Dashboard /wp-admin2,221 ▲415.85 ▲0.1884.14 ▼9.1038.55 ▼11.61
Posts /wp-admin/edit.php2,139 ▲392.39 ▲0.3842.98 ▲4.7238.36 ▲3.68
Add New Post /wp-admin/post-new.php1,545 ▲1923.41 ▲5.79626.94 ▼38.1033.60 ▼17.68
Media Library /wp-admin/upload.php1,433 ▲334.45 ▲0.27104.54 ▼1.6743.92 ▼2.66
Tutsup Modal /wp-admin/options-general.php?page=tutsup-simple-modal8982.1027.3230.34

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tutsup-simple-modal/views/tutsup-index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tutsup-simple-modal/views/settings.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tutsup_check_option() in wp-content/plugins/tutsup-simple-modal/views/tutsup-modal-html.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tutsup-simple-modal/views/tutsup-modal-style.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_theme_textdomain() in wp-content/plugins/tutsup-simple-modal/tutsup-modal.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=tutsup-simple-modal
    • > Network (severe)
    wp-content/themes/twentytwentyone/js/admin_settings.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: modal

tutsup-simple-modal/tutsup-modal.php 85% from 13 tests

Analyzing the main PHP file in "Tutsup Modal" version 0.2.2
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tutsup-simple-modal.php" instead of "tutsup-modal.php")
  • Description: The description should be shorter than 140 characters (currently 225 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin313 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP65053270
PO File113043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected