84% slash-edit

Code Review | Slash Edit

WordPress plugin Slash Edit scored84%from 54 tests.

About plugin

  • Plugin page: slash-edit
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Mar 17, 2023
  • Number of updates: 41
  • Update frequency: every 74.9 days
  • Top authors: ronalfy (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

800+ active /8,394 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.03MB] [CPU: ▼1.75ms] Passed 4 tests

An overview of server-side resources used by Slash Edit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.08 ▼3.45
Dashboard /wp-admin3.34 ▲0.0443.13 ▲0.03
Posts /wp-admin/edit.php3.39 ▲0.0445.12 ▼3.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.73 ▲0.08
Media Library /wp-admin/upload.php3.26 ▲0.0334.57 ▲1.99

Server storage [IO: ▲0.03MB] [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, 7 new options
New WordPress options
slash_edit_version
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slash Edit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.064.48 ▲2.8639.91 ▼4.31
Dashboard /wp-admin2,206 ▲185.91 ▲0.97105.65 ▲3.9342.31 ▼1.70
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0140.44 ▲2.5434.96 ▲0.06
Add New Post /wp-admin/post-new.php1,544 ▲3018.14 ▲0.62599.12 ▼98.2860.18 ▲7.54
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0693.41 ▼8.5742.66 ▼1.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • slash_edit_version
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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 | 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slash-edit/slash-edit.php:178

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: edit, admin

slash-edit/slash-edit.php Passed 13 tests

The main PHP script in "Slash Edit" version 1.1.1 is automatically included on every request by WordPress
57 characters long description:
Edit your posts or pages with a simple "/edit" at the end

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
Success! There were no dangerous files found in this plugin134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12228134

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.60
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods666.67%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin