90% wp-editarea

Code Review | WP Editarea

WordPress plugin WP Editarea scored90%from 54 tests.

About plugin

  • Plugin page: wp-editarea
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.6
  • WordPress version: 6.3.1
  • First release: Feb 10, 2010
  • Latest release: Aug 14, 2013
  • Number of updates: 13
  • Update frequency: every 98.5 days
  • Top authors: takien (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /12,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.62ms] Passed 4 tests

An overview of server-side resources used by WP Editarea
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.15 ▲2.33
Dashboard /wp-admin3.33 ▲0.0353.26 ▼1.90
Posts /wp-admin/edit.php3.38 ▲0.0352.07 ▼3.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.69 ▼2.62
Media Library /wp-admin/upload.php3.25 ▲0.0340.47 ▲1.60
WP Editarea /wp-admin/options-general.php?page=wp-editarea3.2334.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Editarea
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▲0.021.74 ▲0.0342.79 ▼0.23
Dashboard /wp-admin2,196 ▲255.65 ▼0.0485.78 ▼10.6241.55 ▼0.47
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0338.30 ▼1.7233.06 ▼3.39
Add New Post /wp-admin/post-new.php1,541 ▲1522.99 ▼0.01657.25 ▼32.7654.24 ▲1.16
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.04104.51 ▼2.2246.11 ▲2.81
WP Editarea /wp-admin/options-general.php?page=wp-editarea1,1142.0022.1634.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
10 plugin tags: syntax highlight, source code, code editor, admin, editor...

wp-editarea/wp-editarea.php 92% from 13 tests

The main PHP script in "WP Editarea" version 0.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 284 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,910 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript40221122,341
CSS17922429
PHP12512140

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
editarea/images/opacity.png0.14KB0.09KB▼ 34.01%