84% visual-mode-in-cloudfront

Code Review | Enable Visual Mode in CloudFront

WordPress plugin Enable Visual Mode in CloudFront scored 84% from 54 tests.

About plugin

  • Plugin page: visual-mode-in-cl...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-4.9.0
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Nov 10, 2017
  • Number of updates: 10
  • Update frequency: every 148.8 days
  • Top authors: kawax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 5,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.27MB] [CPU: ▼10.87ms] Passed 4 tests

This is a short check of server-side resources used by Enable Visual Mode in CloudFront
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.07 ▼5.50
Dashboard /wp-admin3.31 ▲0.0053.41 ▼4.81
Posts /wp-admin/edit.php3.36 ▲0.0052.48 ▼1.14
Add New Post /wp-admin/post-new.php4.80 ▼1.0873.21 ▼28.86
Media Library /wp-admin/upload.php3.23 ▲0.0036.46 ▼4.32

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Enable Visual Mode in CloudFront
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.19 ▼0.021.63 ▼3.9842.33 ▼2.64
Dashboard /wp-admin2,209 ▲35.84 ▲0.95110.53 ▲1.8943.93 ▲0.62
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0237.51 ▲2.6734.48 ▼1.38
Add New Post /wp-admin/post-new.php1,534 ▼023.26 ▲0.15609.67 ▼55.7751.84 ▲0.08
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0294.83 ▼5.0541.43 ▼5.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/visual-mode-in-cloudfront/visual-mode-in-cloudfront.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
3 plugin tags: editor, cloudfront, post

visual-mode-in-cloudfront/visual-mode-in-cloudfront.php Passed 13 tests

"Enable Visual Mode in CloudFront" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Enable Visual Mode in CloudFront

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP151112
Markdown1509

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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