72% forameal-splash-screen

Code Review | Forameal Splash Screen

WordPress plugin Forameal Splash Screen scored72%from 54 tests.

About plugin

  • Plugin page: forameal-splash-s...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Apr 18, 2015
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,169 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.73ms] Passed 4 tests

Analyzing server-side resources used by Forameal Splash Screen
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.07 ▲3.99
Dashboard /wp-admin3.34 ▼0.0146.66 ▼12.84
Posts /wp-admin/edit.php3.39 ▲0.0344.17 ▼4.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.95 ▼10.50
Media Library /wp-admin/upload.php3.26 ▲0.0334.17 ▲1.05
Forameal Splash Screen /wp-admin/options-general.php?page=my-setting-admin3.2030.76

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Forameal Splash Screen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.26 ▼0.133.00 ▲1.4649.83 ▲8.80
Dashboard /wp-admin2,218 ▲465.55 ▼0.0584.21 ▼14.4775.15 ▲32.40
Posts /wp-admin/edit.php2,120 ▲231.96 ▼0.1234.48 ▼2.8532.72 ▼1.02
Add New Post /wp-admin/post-new.php1,558 ▲2923.06 ▼0.04643.61 ▼22.3186.04 ▲34.15
Media Library /wp-admin/upload.php1,423 ▲264.16 ▲0.0397.32 ▼11.8363.67 ▲16.97
Forameal Splash Screen /wp-admin/options-general.php?page=my-setting-admin8142.1823.8025.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=my-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=my-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forameal-splash-screen/index.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=my-setting-admin
    • > Network (severe)
    wp-content/plugins/igreen-alexa-site-rank/al.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: contact-form-7 in splash screen, email subscribers form in splash screen, splash screen

forameal-splash-screen/index.php 85% from 13 tests

Analyzing the main PHP file in "Forameal Splash Screen" version 2.0.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("forameal-splash-screen.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 232 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin341 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26049161
PHP14943121
CSS114459

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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