84% raptor-editor

Code Review | Raptor Editor for WordPress

WordPress plugin Raptor Editor for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: raptor-editor
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Apr 14, 2014
  • Number of updates: 19
  • Update frequency: every 1.4 days
  • Top authors: PetahNZ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,507 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.52ms] Passed 4 tests

An overview of server-side resources used by Raptor Editor for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.58 ▲5.24
Dashboard /wp-admin3.33 ▲0.0346.89 ▲0.79
Posts /wp-admin/edit.php3.38 ▲0.0247.60 ▼0.55
Add New Post /wp-admin/post-new.php6.17 ▲0.2984.85 ▼5.76
Media Library /wp-admin/upload.php3.26 ▲0.0335.19 ▼0.56

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Raptor Editor for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,137 ▲40215.94 ▲1.5719.67 ▲18.0938.28 ▲0.74
Dashboard /wp-admin2,305 ▲1135.92 ▲0.95114.71 ▲4.7244.44 ▲3.83
Posts /wp-admin/edit.php2,184 ▲952.85 ▲0.7350.17 ▲7.6738.02 ▲3.10
Add New Post /wp-admin/post-new.php1,534 ▲2023.29 ▲5.74594.70 ▼85.0559.94 ▲9.32
Media Library /wp-admin/upload.php1,481 ▲935.37 ▲1.17107.16 ▲11.0042.34 ▼1.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raptor-editor/classes/Raptor.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Editing a post inline.) image missing
Please take inspiration from this readme.txt

raptor-editor/index.php 92% from 13 tests

This is the main PHP file of "Raptor Editor for WordPress" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("raptor-editor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin19,883 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript172,4775,68215,431
CSS103269003,033
SVG1031,301
PHP21514100
Markdown114018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png66.29KB30.16KB▼ 54.51%