74% postsquirrel

Code Review | Postsquirrel

WordPress plugin Postsquirrel scored74%from 54 tests.

About plugin

  • Plugin page: postsquirrel
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: Apr 8, 2021
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: postsquirrel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Postsquirrel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.25 ▼0.62
Dashboard /wp-admin3.33 ▼0.0144.69 ▼15.80
Posts /wp-admin/edit.php3.38 ▲0.0348.48 ▲3.25
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.42 ▼17.99
Media Library /wp-admin/upload.php3.25 ▲0.0330.87 ▼0.52

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 6 new options
New tables
wp_psl_data
wp_psl_networks
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Postsquirrel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.23 ▼1.331.54 ▼0.1940.59 ▼7.16
Dashboard /wp-admin2,224 ▲365.85 ▼0.05108.63 ▼6.2373.24 ▲26.77
Posts /wp-admin/edit.php2,110 ▲212.01 ▼0.0140.10 ▲4.1635.99 ▼0.59
Add New Post /wp-admin/post-new.php6,190 ▲4,66723.83 ▲0.78946.81 ▲329.4556.96 ▼11.95
Media Library /wp-admin/upload.php1,403 ▲124.26 ▲0.04100.28 ▼0.4275.91 ▲33.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_psl_networks
    • wp_psl_data
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/inc/meta_box.php on line 7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/inc/meta_box.php on line 8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 21
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/inc/connected_data.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/postsquirrel/psl.php:11
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/postsquirrel/core/postsquirrel.php:25
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 21
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/postsquirrel/core/postsquirrel.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/postsquirrel/core/postsquirrel.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: postsquirrel, social media manager, manage social accounts, share posts, social media tool...

postsquirrel/psl.php 92% from 13 tests

"Postsquirrel" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("postsquirrel.php" instead of "psl.php")

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
Good job! No executable or dangerous file extensions detected587 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP51348437
JavaScript117079
CSS10071

PHP code Passed 2 tests

A short review of 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.29
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods555.56%
▷ Protected methods444.44%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/menu.png0.67KB0.84KB0.00%