79% icecred-preloader

Code Review | iceCred Preloader

WordPress plugin iceCred Preloader scored 79% from 54 tests.

About plugin

  • Plugin page: icecred-preloader
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-4.7.5
  • WordPress version: 6.3.1
  • First release: May 5, 2017
  • Latest release: May 18, 2017
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: icecred (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 638 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.00MB] [CPU: ▼6.79ms] Passed 4 tests

Analyzing server-side resources used by iceCred Preloader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0623.89 ▼14.87
Dashboard /wp-admin3.33 ▲0.0347.36 ▼5.17
Posts /wp-admin/edit.php3.38 ▲0.0251.55 ▲5.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.68 ▼8.42
Media Library /wp-admin/upload.php3.25 ▲0.0237.11 ▲1.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for iceCred Preloader
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20313.47 ▼0.901.69 ▲0.0241.02 ▼2.87
Dashboard /wp-admin2,244 ▲595.18 ▼0.71111.40 ▲5.7938.60 ▼2.36
Posts /wp-admin/edit.php2,129 ▲402.28 ▲0.2741.57 ▲6.9933.84 ▲1.63
Add New Post /wp-admin/post-new.php1,541 ▲817.65 ▼5.54662.67 ▼16.6234.46 ▼28.08
Media Library /wp-admin/upload.php1,426 ▲414.42 ▲0.2999.56 ▼18.0941.79 ▼6.35

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/icecred-preloader/frontend/js.php
    • > /wp-content/plugins/icecred-preloader/settings.php
    • > /wp-content/plugins/icecred-preloader/frontend.php
    • > /wp-content/plugins/icecred-preloader/icecred-preloader.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/icecred-preloader/frontend/style.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/icecred-preloader/frontend/html.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
1 plugin tags: preloader

icecred-preloader/icecred-preloader.php Passed 13 tests

The main PHP script in "iceCred Preloader" version 1.0.1 is automatically included on every request by WordPress
75 characters long description:
A fullscreen wordpress preloader. It is great, lightweight and easy to use.

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
No dangerous file extensions were detected222 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63726165
SVG10054
JavaScript1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected