78% shdlr-integrate

Code Review | Shdlr Integrate

WordPress plugin Shdlr Integrate scored78%from 54 tests.

About plugin

  • Plugin page: shdlr-integrate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Oct 30, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: adi3890 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,011 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.81ms] Passed 4 tests

Server-side resources used by Shdlr Integrate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.77 ▲2.28
Dashboard /wp-admin3.34 ▲0.0445.19 ▼5.75
Posts /wp-admin/edit.php3.39 ▲0.0449.16 ▼0.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.75 ▼17.77
Media Library /wp-admin/upload.php3.27 ▲0.0432.44 ▲0.61
Shdlr Integrate /wp-admin/options-general.php?page=shdlr_integrate3.2129.79

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

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

Browser metrics Passed 4 tests

Shdlr Integrate: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲17313.54 ▼1.218.68 ▲6.6844.31 ▼1.47
Dashboard /wp-admin2,204 ▲165.83 ▲0.94107.71 ▲4.0741.58 ▼0.15
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0335.05 ▼0.6829.89 ▼3.77
Add New Post /wp-admin/post-new.php1,545 ▲318.14 ▼0.18615.30 ▲0.3765.28 ▲8.11
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.0194.29 ▼8.9840.72 ▼3.41
Shdlr Integrate /wp-admin/options-general.php?page=shdlr_integrate9422.3831.1325.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=shdlr_integrate
    • > Notice in wp-content/plugins/shdlr-integrate/index.php+96
    Trying to access array offset on value of type bool

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shdlr-integrate/index.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: shdlr, shdlrcom, shortcode, schedule, integrate...

shdlr-integrate/index.php 92% from 13 tests

"Shdlr Integrate" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shdlr-integrate.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 plugin372 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP14530194
JavaScript1100112
CSS39066

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/shdlr_logo.png4.53KB3.07KB▼ 32.31%