84% insert

Code Review | Insert

WordPress plugin Insert scored84%from 54 tests.

About plugin

  • Plugin page: insert
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-3.8.0
  • WordPress version: 6.3.1
  • First release: Jan 30, 2014
  • Latest release: Jan 30, 2014
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ryanve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,363 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.01MB] [CPU: ▼1.98ms] Passed 4 tests

This is a short check of server-side resources used by Insert
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0151.84 ▲7.28
Dashboard /wp-admin3.32 ▲0.0149.69 ▼8.27
Posts /wp-admin/edit.php3.37 ▲0.0153.14 ▲4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.81 ▼7.00
Media Library /wp-admin/upload.php3.24 ▲0.0138.35 ▲3.00

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Insert
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.27 ▼0.081.74 ▼0.2839.26 ▼3.81
Dashboard /wp-admin2,195 ▲245.63 ▲0.0991.12 ▼6.5038.54 ▼0.29
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0440.28 ▲3.0536.25 ▲1.59
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▼0.27602.43 ▼114.2957.43 ▲5.01
Media Library /wp-admin/upload.php1,397 ▼64.19 ▼0.0198.85 ▼3.8243.43 ▼2.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/insert/insert.php:12

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: insert, shortcode

insert/insert.php Passed 13 tests

The primary PHP file in "Insert" version 0.1.0 is used by WordPress to initiate all plugin functionality
48 characters long description:
Insert posts, hooks, or templates via shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown125052
PHP15927

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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 functions00.00%
▷ Anonymous functions3100.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
No PNG images were found in this plugin