84% simple-drop-ins

Code Review | Simple Drop-ins

WordPress plugin Simple Drop-ins scored84%from 54 tests.

About plugin

  • Plugin page: simple-drop-ins
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 30, 2013
  • Latest release: Aug 30, 2013
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: rosdyana.kusuma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Simple Drop-ins
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.76 ▼2.47
Dashboard /wp-admin3.31 ▲0.0150.07 ▼1.18
Posts /wp-admin/edit.php3.36 ▲0.0148.86 ▼1.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.35 ▼9.73
Media Library /wp-admin/upload.php3.23 ▲0.0135.82 ▲2.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Drop-ins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.55 ▼0.751.81 ▲0.0339.58 ▼1.47
Dashboard /wp-admin2,206 ▲204.86 ▼0.09109.71 ▼1.5642.25 ▼1.38
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0340.71 ▲3.7437.04 ▲2.46
Add New Post /wp-admin/post-new.php6,237 ▲4,70126.16 ▲3.24835.17 ▲163.8565.78 ▲15.31
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0595.62 ▼9.1644.19 ▼0.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-drop-ins/drop-in-plugin.php:30

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 issues were found

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
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Screen shot for choose and put the link.)
The official readme.txt might help

simple-drop-ins/drop-in-plugin.php 92% from 13 tests

This is the main PHP file of "Simple Drop-ins" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-drop-ins.php" instead of "drop-in-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2012
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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 functions3100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png17.60KB6.09KB▼ 65.38%