89% simpleshare

Code Review | SimpleShare

WordPress plugin SimpleShare scored89%from 54 tests.

About plugin

  • Plugin page: simpleshare
  • Plugin version: 2023...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 19, 2010
  • Latest release: Aug 19, 2023
  • Number of updates: 8
  • Update frequency: every 615.6 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,075 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.27ms] Passed 4 tests

This is a short check of server-side resources used by SimpleShare
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.96 ▲3.45
Dashboard /wp-admin3.32 ▲0.0144.05 ▼9.40
Posts /wp-admin/edit.php3.37 ▲0.0144.23 ▼1.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.80 ▼17.11
Media Library /wp-admin/upload.php3.24 ▲0.0132.59 ▼1.46

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SimpleShare
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.161.77 ▲0.1644.87 ▲5.43
Dashboard /wp-admin2,195 ▲155.55 ▼0.1182.31 ▼3.8935.97 ▼7.42
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.1133.34 ▼3.5536.94 ▲3.92
Add New Post /wp-admin/post-new.php1,526 ▼023.54 ▲0.41675.65 ▲2.8560.78 ▼0.01
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0197.28 ▼3.5445.41 ▲0.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: social sharing, twitter, social media, print, social...

simpleshare/simpleshare.php 85% from 13 tests

The main PHP script in "SimpleShare" version 2023... is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "2023...")
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

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
No dangerous file extensions were detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131129

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin