84% rafa-tinymce-iframe

Code Review | Rafa TinyMCE Iframe

WordPress plugin Rafa TinyMCE Iframe scored84%from 54 tests.

About plugin

  • Plugin page: rafa-tinymce-iframe
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Nov 9, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rafacorre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,003 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Rafa TinyMCE Iframe
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.18 ▼8.12
Dashboard /wp-admin3.31 ▲0.0142.50 ▼3.05
Posts /wp-admin/edit.php3.36 ▲0.0047.52 ▼2.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0176.75 ▼25.61
Media Library /wp-admin/upload.php3.23 ▲0.0032.84 ▼0.27

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

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

Browser metrics Passed 4 tests

Rafa TinyMCE Iframe: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.424.54 ▲2.5940.84 ▼2.04
Dashboard /wp-admin2,206 ▲185.83 ▲0.73112.60 ▲10.6242.04 ▼0.63
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0540.23 ▼2.8234.66 ▼4.98
Add New Post /wp-admin/post-new.php1,514 ▼1917.67 ▼5.60602.84 ▼12.2856.82 ▲8.91
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.0195.99 ▼3.4942.04 ▼1.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rafa-tinymce-iframe/rafa-tinymce-iframe.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: shortcode, iframe, tinymce

rafa-tinymce-iframe/rafa-tinymce-iframe.php Passed 13 tests

The entry point to "Rafa TinyMCE Iframe" version 1.0.0 is a PHP file that has certain tags in its header comment area
52 characters long description:
Create button with shortcode for iframe in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin115 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14184
PHP211931

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin