78% storeya-like-box

Code Review | StoreYa Like Box

WordPress plugin StoreYa Like Box scored78%from 54 tests.

About plugin

  • Plugin page: storeya-like-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Apr 20, 2020
  • Number of updates: 565
  • Update frequency: every 3.4 days
  • Top authors: storeya (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /14,967 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
Install script ran successfully

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

This is a short check of server-side resources used by StoreYa Like Box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.91 ▼3.40
Dashboard /wp-admin3.31 ▲0.0147.37 ▼6.51
Posts /wp-admin/edit.php3.37 ▲0.0150.01 ▼2.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.18 ▼26.03
Media Library /wp-admin/upload.php3.24 ▲0.0141.81 ▲4.21
StoreYa Like Box /wp-admin/options-general.php?page=storeya-like-box3.1833.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for StoreYa Like Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.30 ▼0.082.05 ▲0.1545.38 ▼1.38
Dashboard /wp-admin2,209 ▲325.66 ▲0.0784.41 ▼9.2241.03 ▼3.13
Posts /wp-admin/edit.php2,111 ▲81.98 ▼0.0240.09 ▼3.8735.13 ▼2.88
Add New Post /wp-admin/post-new.php1,569 ▲3623.18 ▼0.02661.55 ▼20.8156.58 ▲4.24
Media Library /wp-admin/upload.php1,414 ▲144.19 ▼0.0298.28 ▼17.2542.91 ▼5.91
StoreYa Like Box /wp-admin/options-general.php?page=storeya-like-box8532.2026.6436.07

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=storeya-like-box
    • > 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=storeya-like-box
    • > 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/storeya-like-box/storeya-like-box.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (50 tag instead of maximum 10)
You can take inspiration from this readme.txt

storeya-like-box/storeya-like-box.php Passed 13 tests

This is the main PHP file of "StoreYa Like Box" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Like Box plugin increasing your Facebook Community from day one!

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 plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12614124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lock.png0.73KB0.91KB0.00%