90% pre-tag-for-wp-editor

Code Review | pre Tag For WP Editor

WordPress plugin pre Tag For WP Editor scored90%from 54 tests.

About plugin

  • Plugin page: pre-tag-for-wp-ed...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Oct 19, 2017
  • Latest release: Oct 19, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: alexvorn2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /879 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
This plugin's installer ran successfully

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

A check of server-side resources used by pre Tag For WP Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.48 ▲6.20
Dashboard /wp-admin3.33 ▲0.0242.83 ▼2.19
Posts /wp-admin/edit.php3.38 ▲0.0242.37 ▼3.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.55 ▼13.14
Media Library /wp-admin/upload.php3.25 ▲0.0236.60 ▼0.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by pre Tag For WP Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.141.71 ▲0.0243.84 ▲2.84
Dashboard /wp-admin2,195 ▲155.54 ▼0.1180.81 ▼5.8938.89 ▼1.35
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0135.26 ▼0.7030.25 ▼7.19
Add New Post /wp-admin/post-new.php1,528 ▼823.44 ▲0.32659.68 ▲6.7454.05 ▼2.13
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0294.15 ▼19.9544.02 ▼5.13

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: html, pre, editor, wp_editor

pre-tag-for-wp-editor/pre-tag-for-wp-editor.php Passed 13 tests

The primary PHP file in "pre Tag For WP Editor" version 1.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
This plugin will add a pre tag functionality to wp_editor.

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 detected153 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43932107
JavaScript19346

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected