84% brainesia-scoll-effect

Code Review | Brainesia Scroll Effect

WordPress plugin Brainesia Scroll Effect scored84%from 54 tests.

About plugin

  • Plugin page: brainesia-scoll-e...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9
  • WordPress version: 6.3.1
  • First release: Dec 28, 2014
  • Latest release: Mar 6, 2018
  • Number of updates: 11
  • Update frequency: every 105.8 days
  • Top authors: brainesia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,716 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.31ms] Passed 4 tests

This is a short check of server-side resources used by Brainesia Scroll Effect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.53 ▼3.49
Dashboard /wp-admin3.34 ▲0.0345.03 ▼3.64
Posts /wp-admin/edit.php3.39 ▲0.0345.79 ▲3.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.96 ▼25.18
Media Library /wp-admin/upload.php3.26 ▲0.0336.81 ▲5.65

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Brainesia Scroll Effect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.19 ▼1.462.34 ▲0.4241.22 ▼2.70
Dashboard /wp-admin2,210 ▲224.86 ▼1.02110.58 ▲5.5743.80 ▲6.58
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0043.24 ▲1.3734.49 ▼3.31
Add New Post /wp-admin/post-new.php1,532 ▼123.02 ▼0.05680.35 ▲76.1252.38 ▼0.23
Media Library /wp-admin/upload.php1,395 ▲104.30 ▲0.11104.08 ▲2.5546.66 ▲3.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brainesia-scoll-effect/brainesia-scroll-effect.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
Please take inspiration from this readme.txt

brainesia-scoll-effect/brainesia-scroll-effect.php 92% from 13 tests

The principal PHP file in "Brainesia Scroll Effect" v. 2.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brainesia-scoll-effect.php" instead of "brainesia-scroll-effect.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
Good job! No executable or dangerous file extensions detected3,342 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2499142,982
PHP1814219
JavaScript21222141

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/After-Effects-7-icon.png2.31KB1.75KB▼ 24.38%
screenshot-1.png30.82KB12.29KB▼ 60.11%