83% shift8-modal

Code Review | Shift8 Modal

WordPress plugin Shift8 Modal scored83%from 54 tests.

About plugin

  • Plugin page: shift8-modal
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Oct 13, 2020
  • Number of updates: 15
  • Update frequency: every 105.3 days
  • Top authors: shift8 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,440 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 gracefully, with no errors

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

A check of server-side resources used by Shift8 Modal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.47 ▲3.56
Dashboard /wp-admin3.31 ▲0.0050.76 ▼1.71
Posts /wp-admin/edit.php3.36 ▲0.0052.81 ▲2.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.18 ▼46.78
Media Library /wp-admin/upload.php3.23 ▲0.0035.52 ▲0.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Shift8 Modal: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.78 ▼0.602.32 ▼0.0443.52 ▲2.42
Dashboard /wp-admin2,224 ▲215.85 ▲0.9599.39 ▼5.5340.47 ▼8.06
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0039.62 ▼6.1834.97 ▼0.54
Add New Post /wp-admin/post-new.php1,526 ▼617.73 ▼5.35617.65 ▼91.2054.34 ▼6.88
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.06100.51 ▼11.7543.33 ▼5.25

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shift8-modal/shift8-modal.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Contributors: Please add at least on tag
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

shift8-modal/shift8-modal.php Passed 13 tests

The entry point to "Shift8 Modal" version 1.3 is a PHP file that has certain tags in its header comment area
68 characters long description:
This plugin incorporates animatedModal.js into easy-to-use shortcode

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
No dangerous file extensions were detected152 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2251487
PHP1101763
CSS1272

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin