78% er-swiffy-insert

Code Review | ER Swiffy Insert

WordPress plugin ER Swiffy Insert scored78%from 54 tests.

About plugin

  • Plugin page: er-swiffy-insert
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Apr 2, 2013
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: erithq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,717 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.19ms] Passed 4 tests

Analyzing server-side resources used by ER Swiffy Insert
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.51 ▼3.11
Dashboard /wp-admin3.33 ▼0.0243.99 ▼20.69
Posts /wp-admin/edit.php3.38 ▲0.0243.75 ▼7.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.27 ▼1.54
Media Library /wp-admin/upload.php3.25 ▲0.0236.92 ▲2.41
ER Swiffy Insert /wp-admin/options-general.php?page=swiffy-insert3.2330.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ER Swiffy Insert
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.28 ▼1.351.75 ▼0.3039.96 ▼12.13
Dashboard /wp-admin2,207 ▲195.85 ▲0.91108.93 ▲1.7642.91 ▲2.55
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0440.93 ▲4.7634.63 ▲3.00
Add New Post /wp-admin/post-new.php1,531 ▼223.28 ▲0.19648.16 ▲22.4458.82 ▲12.43
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.0596.08 ▼5.1143.89 ▲1.73
ER Swiffy Insert /wp-admin/options-general.php?page=swiffy-insert8662.1422.5243.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/er-swiffy-insert/howto.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/er-swiffy-insert/er-swiffy-insert.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: You should set the name of your plugin on the first line ( === er-swiffy-insert === )
You can look at the official readme.txt

er-swiffy-insert/er-swiffy-insert.php 92% from 13 tests

The principal PHP file in "ER Swiffy Insert" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 226 characters long)

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
Success! There were no dangerous files found in this plugin117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22133117

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.20
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin