84% slideup-social

Code Review | Slideup Social

WordPress plugin Slideup Social scored84%from 54 tests.

About plugin

  • Plugin page: slideup-social
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 20, 2019
  • Latest release: Feb 1, 2022
  • Number of updates: 9
  • Update frequency: every 116.7 days
  • Top authors: fahem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 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
Install script ran successfully

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

Analyzing server-side resources used by Slideup Social
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.43 ▼7.07
Dashboard /wp-admin3.33 ▲0.0251.63 ▲1.09
Posts /wp-admin/edit.php3.38 ▲0.0249.52 ▼2.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.55 ▼12.81
Media Library /wp-admin/upload.php3.25 ▲0.0241.81 ▲4.16
Slideup Social /wp-admin/options-general.php?page=slideup_social3.2234.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Slideup Social
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.28 ▼0.072.87 ▲0.8939.23 ▼2.84
Dashboard /wp-admin2,199 ▲255.53 ▼0.0484.97 ▼5.1343.34 ▲3.48
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0436.20 ▼1.5232.97 ▼2.51
Add New Post /wp-admin/post-new.php1,529 ▼523.23 ▲4.91672.09 ▲19.3554.53 ▼10.86
Media Library /wp-admin/upload.php1,407 ▲44.11 ▼0.03104.78 ▲4.3947.19 ▲1.88
Slideup Social /wp-admin/options-general.php?page=slideup_social8441.9922.5328.22

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slideup-social/options/option.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slideup-social/options/option.php:5

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 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is required in slideup-social/assets to your readme.txt
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

slideup-social/slideup-social.php Passed 13 tests

The main PHP file in "Slideup Social" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
38 characters long description:
SlideUp social links when scroll down.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin360 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22411138
CSS1260104
JavaScript224285
PO File18833

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/facebook.png2.09KB1.37KB▼ 34.58%
assets/img/twitter.png4.62KB3.10KB▼ 32.93%
assets/img/instagram.png5.73KB3.90KB▼ 31.81%