84% the-insertr

Code Review | The Insertr

WordPress plugin The Insertr scored84%from 54 tests.

About plugin

  • Plugin page: the-insertr
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.7
  • WordPress version: 6.3.1
  • First release: Dec 12, 2019
  • Latest release: Mar 19, 2021
  • Number of updates: 29
  • Update frequency: every 16.0 days
  • Top authors: b3none (93.1%)garethmorgans (10.34%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /653 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: ▼8.67ms] Passed 4 tests

This is a short check of server-side resources used by The Insertr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.11 ▼6.52
Dashboard /wp-admin3.31 ▼0.0449.21 ▼13.46
Posts /wp-admin/edit.php3.36 ▲0.0045.27 ▼13.82
Add New Post /wp-admin/post-new.php5.89 ▲0.00112.72 ▲13.28
Media Library /wp-admin/upload.php3.23 ▲0.0036.18 ▼0.89

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for The Insertr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.381.87 ▲0.2039.80 ▼8.42
Dashboard /wp-admin2,206 ▲155.85 ▼0.06101.94 ▼7.1143.05 ▼2.91
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0439.90 ▼0.9436.64 ▼1.75
Add New Post /wp-admin/post-new.php1,535 ▲623.42 ▲5.29678.43 ▲1.7156.88 ▲0.16
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0195.73 ▼10.1545.49 ▲0.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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 following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/the-insertr/the-insertr.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (There are no screenshots available for this project.) image required
The official readme.txt might help

the-insertr/the-insertr.php Passed 13 tests

The main PHP script in "The Insertr" version 1.4.1 is automatically included on every request by WordPress
43 characters long description:
Wordpress dynamic keyword insertion plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210832

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin