84% wp-tryiteditor

Code Review | wp-tryitEditor

WordPress plugin wp-tryitEditor scored84%from 54 tests.

About plugin

  • Plugin page: wp-tryiteditor
  • Plugin version: 0.40c...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2015
  • Latest release: Mar 18, 2015
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: takeda yuji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by wp-tryitEditor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0723.40 ▼14.89
Dashboard /wp-admin3.32 ▼0.0343.78 ▼14.03
Posts /wp-admin/edit.php3.37 ▲0.0147.85 ▲0.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.42 ▼12.47
Media Library /wp-admin/upload.php3.24 ▲0.0133.89 ▼0.83

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

wp-tryitEditor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,179 ▲41815.27 ▲0.9242.72 ▲41.1339.10 ▼2.50
Dashboard /wp-admin2,198 ▲215.55 ▼0.0279.69 ▼6.2438.74 ▼0.82
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0440.92 ▲5.5138.20 ▲2.58
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▲0.13678.87 ▲15.9452.18 ▲2.00
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.0190.25 ▼8.1144.41 ▼1.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tryiteditor/plugin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% 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
4 plugin tags: editor, wysiwyg, inline, isual

wp-tryiteditor/plugin.php 85% from 13 tests

The main file in "wp-tryitEditor" v. 0.40c... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "0.40c...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-tryiteditor.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin1,543 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21763821,492
PHP114951

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin