88% fat-editor-addon

Code Review | FAT Editor Add On

WordPress plugin FAT Editor Add On scored 88% from 54 tests.

About plugin

  • Plugin page: fat-editor-addon
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8
  • WordPress version: 5.8.1
  • First release: Jun 27, 2017
  • Latest release: Jun 27, 2017
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: roninwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 547 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼136.61ms] Passed 4 tests

Server-side resources used by FAT Editor Add On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1837.25 ▲15.43
Dashboard /wp-admin3.14 ▲0.0846.04 ▲0.79
Posts /wp-admin/edit.php3.19 ▲0.0840.94 ▼0.90
Add New Post /wp-admin/post-new.php5.51 ▲0.0793.19 ▼542.71
Media Library /wp-admin/upload.php3.08 ▲0.0832.88 ▼3.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

FAT Editor Add On: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12416.19 ▲0.629.29 ▼1.2550.49 ▲6.72
Dashboard /wp-admin3,014 ▲836.59 ▲0.64145.87 ▲4.90117.56 ▲9.46
Posts /wp-admin/edit.php2,783 ▲442.78 ▲0.0667.80 ▲2.2498.08 ▲12.37
Add New Post /wp-admin/post-new.php1,715 ▼34218.64 ▼0.67371.02 ▼8.46128.42 ▲12.64
Media Library /wp-admin/upload.php1,851 ▲445.22 ▲0.21126.62 ▼14.65116.52 ▼11.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fat-editor-addon/fat-editor-addon.php
    • > /wp-content/plugins/fat-editor-addon/templates/field-tpml.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/fat-editor-addon/templates/vimeo.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-editor-addon/templates/video-embed.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/fat-editor-addon/templates/social-share.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-editor-addon/templates/vimeo.php:13
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/fat-editor-addon/templates/video-embed.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fat-editor-addon/templates/youtube.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fat-editor-addon/templates/video-embed.php on line 17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fat-editor-addon/templates/vimeo.php on line 11

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 96% 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
9 plugin tags: twitter, editor, video embed, youtube, pinterest...

fat-editor-addon/fat-editor-addon.php 92% from 13 tests

This is the main PHP file of "FAT Editor Add On" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,421 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP64747539
JavaScript67161471
CSS33516407
Markdown1204

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.57
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity7.46
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/twitter-icon.png3.00KB1.93KB▼ 35.77%
assets/images/image-icon.png3.31KB0.80KB▼ 75.86%
assets/images/highlight-icon.png2.67KB1.48KB▼ 44.59%
assets/images/video-player-icon.png1.84KB0.65KB▼ 64.49%