89% wp-better-edit

Code Review | WP Better Edit

WordPress plugin WP Better Edit scored89%from 54 tests.

About plugin

  • Plugin page: wp-better-edit
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 9, 2016
  • Latest release: Aug 12, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: dpoakaspine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /484 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.50ms] Passed 4 tests

Server-side resources used by WP Better Edit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.38 ▼8.60
Dashboard /wp-admin3.32 ▲0.0248.38 ▼0.00
Posts /wp-admin/edit.php3.37 ▲0.0151.45 ▲2.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.34 ▼13.43
Media Library /wp-admin/upload.php3.24 ▲0.0136.69 ▲0.05

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Better Edit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲13214.86 ▲0.481.84 ▼0.3145.16 ▲5.67
Dashboard /wp-admin2,251 ▲725.09 ▲0.22118.52 ▲11.6841.61 ▲0.41
Posts /wp-admin/edit.php2,137 ▲482.34 ▲0.3046.64 ▲5.8339.99 ▲2.57
Add New Post /wp-admin/post-new.php1,565 ▲4623.43 ▲0.30686.35 ▲41.8570.57 ▲10.40
Media Library /wp-admin/upload.php1,433 ▲514.47 ▲0.29113.35 ▲9.4449.01 ▲3.77

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt is a good inspiration

wp-better-edit/index.php 92% from 13 tests

This is the main PHP file of "WP Better Edit" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-better-edit.php" instead of "index.php")

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
There were no executable files found in this plugin73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1292172
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin