84% shy-posts

Code Review | Shy Posts

WordPress plugin Shy Posts scored84%from 54 tests.

About plugin

  • Plugin page: shy-posts
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: May 13, 2019
  • Number of updates: 15
  • Update frequency: every 139.1 days
  • Top authors: topher1kenobe (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,753 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.05ms] Passed 4 tests

This is a short check of server-side resources used by Shy Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.28 ▼2.40
Dashboard /wp-admin3.31 ▼0.0349.23 ▼22.43
Posts /wp-admin/edit.php3.37 ▲0.0147.97 ▼0.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.24 ▼1.34
Media Library /wp-admin/upload.php3.24 ▲0.0137.74 ▼2.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Shy Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.011.75 ▼0.0641.38 ▼1.74
Dashboard /wp-admin2,195 ▲185.63 ▼0.0289.39 ▼7.3539.39 ▼6.09
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0734.18 ▼4.0333.76 ▲0.25
Add New Post /wp-admin/post-new.php1,533 ▲523.02 ▲0.27643.99 ▼49.7055.94 ▲2.60
Media Library /wp-admin/upload.php1,391 ▼124.18 ▲0.03103.34 ▼6.6558.81 ▲13.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • 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 everything seems fine, this is not 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shy-posts/shy-posts.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: posts

shy-posts/shy-posts.php Passed 13 tests

The main file in "Shy Posts" v. 1.3.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Provides a mechanism for preventing posts from being rendered on the homepage loop

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
No dangerous file extensions were detected115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP150140100
JSON11015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin