84% shouty

Code Review | Shouty

WordPress plugin Shouty scored 84% from 54 tests.

About plugin

  • Plugin page: shouty
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Oct 14, 2015
  • Number of updates: 39
  • Update frequency: every 11.6 days
  • Top authors: gungorbudak (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active / 5,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.95ms] Passed 4 tests

A check of server-side resources used by Shouty
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.29 ▼0.55
Dashboard /wp-admin3.42 ▲0.1155.59 ▲7.25
Posts /wp-admin/edit.php3.47 ▲0.1151.25 ▲4.88
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.21 ▼8.42
Media Library /wp-admin/upload.php3.34 ▲0.1136.56 ▲0.29
Categories /wp-admin/edit-tags.php?taxonomy=shout_category&post_type=shout3.3339.22
Add New /wp-admin/post-new.php?post_type=shout3.4857.31
All Shouts /wp-admin/edit.php?post_type=shout3.3837.69

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shouty
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲13113.16 ▼1.432.99 ▲1.5038.26 ▼3.77
Dashboard /wp-admin2,240 ▲514.85 ▼0.06100.52 ▼8.1738.63 ▼5.43
Posts /wp-admin/edit.php2,120 ▲282.04 ▼0.0134.31 ▼2.3832.20 ▲2.13
Add New Post /wp-admin/post-new.php1,560 ▲1523.34 ▲5.29608.74 ▼2.5962.54 ▲15.03
Media Library /wp-admin/upload.php1,419 ▲314.12 ▼0.10114.04 ▲4.1749.93 ▼2.16
Categories /wp-admin/edit-tags.php?taxonomy=shout_category&post_type=shout1,2932.2632.5529.51
Add New /wp-admin/post-new.php?post_type=shout2,6077.81174.5464.21
All Shouts /wp-admin/edit.php?post_type=shout1,1461.9633.5731.29

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

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

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 no errors were found, this is by no means 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shouty/shouty.php:29

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

shouty/shouty.php Passed 13 tests

The main PHP script in "Shouty" version 0.2.1 is automatically included on every request by WordPress
67 characters long description:
Shouty is a shoutbox that makes your Wordpress site more shoutable.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin760 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File5105130304
PHP14666292
CSS115085
JavaScript10079

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions10
▷ Named functions10100.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
No PNG files were detected