10% wp-super-edit

Code Review | WP Super Edit

WordPress plugin WP Super Edit scored10%from 54 tests.

About plugin

  • Plugin page: wp-super-edit
  • Plugin version: 2.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4.0
  • WordPress version: 6.3.1
  • First release: Jul 15, 2007
  • Latest release: Mar 7, 2020
  • Number of updates: 331
  • Update frequency: every 14.0 days
  • Top authors: ev3rywh3re (98.49%)mrahmadawais (1.81%)

Code review

54 tests

User reviews

18 reviews

Install metrics

4,000+ active /362,677 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-super-edit/wp-super-edit.core.class.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_super_edit_core has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼55.88ms] Passed 4 tests

Server-side resources used by WP Super Edit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.306.01 ▼40.73
Dashboard /wp-admin2.18 ▼1.126.55 ▼47.39
Posts /wp-admin/edit.php2.18 ▼1.177.56 ▼43.26
Add New Post /wp-admin/post-new.php2.18 ▼3.717.80 ▼92.14
Media Library /wp-admin/upload.php2.18 ▼1.056.10 ▼32.07

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Super Edit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.041.74 ▼0.2543.85 ▼0.46
Dashboard /wp-admin2,196 ▲165.58 ▼0.10122.87 ▲20.7443.95 ▲0.38
Posts /wp-admin/edit.php2,101 ▲12.09 ▲0.0833.70 ▼2.7735.82 ▲0.35
Add New Post /wp-admin/post-new.php1,531 ▲523.18 ▼0.45686.26 ▼8.4554.22 ▲2.49
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.05101.02 ▼5.8943.97 ▲0.42
WP Super Edit /wp-admin/wp-super-edit-admin.php260.420.1016.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-super-edit/wp-super-edit.core.class.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_super_edit_core has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
  • 5× 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/wp-super-edit/wp-super-edit-defaults.php:76
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-super-edit/wp-super-edit.php on line 58
    • > PHP Warning
      require_once(WP_PLUGIN_DIR/wp-super-edit/wp-super-edit.core.class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-super-edit/wp-super-edit.php on line 58
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_PLUGIN_DIR/wp-super-edit/wp-super-edit.core.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-super-edit/wp-super-edit.php on line 58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_super_edit_ui_header() in wp-content/plugins/wp-super-edit/wp-super-edit-user.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/wp-super-edit-admin.php
    • > Network (severe)
    wp-admin/wp-super-edit-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-super-edit === )
The official readme.txt is a good inspiration

wp-super-edit/wp-super-edit.php Passed 13 tests

The primary PHP file in "WP Super Edit" version 2.5.4 is used by WordPress to initiate all plugin functionality
127 characters long description:
Get control of the WordPress wysiwyg visual editor and add some functionality with more buttons and customized TinyMCE plugins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,726 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript281,7356837,167
PHP75994351,965
PO File1157157386
CSS13912208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity59.50
▷ Minimum class complexity58.00
▷ Maximum class complexity61.00
Average method complexity7.16
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png3.14KB0.22KB▼ 93.09%
images/separator.png0.17KB0.12KB▼ 31.82%
images/info.png0.69KB0.65KB▼ 6.61%