72% solid-post-likes

Code Review | Solid Post Likes

WordPress plugin Solid Post Likes scored72%from 54 tests.

About plugin

  • Plugin page: solid-post-likes
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2021
  • Latest release: Jun 29, 2023
  • Number of updates: 23
  • Update frequency: every 37.9 days
  • Top authors: oacstudio (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /5,948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.88MB] [CPU: ▲6.10ms] Passed 4 tests

An overview of server-side resources used by Solid Post Likes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.39 ▲1.9255.90 ▲19.00
Dashboard /wp-admin5.23 ▲1.8861.19 ▲4.35
Posts /wp-admin/edit.php5.27 ▲1.9168.50 ▲18.69
Add New Post /wp-admin/post-new.php7.78 ▲1.8998.11 ▼15.77
Media Library /wp-admin/upload.php5.06 ▲1.8349.54 ▲17.11

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 543 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Solid Post Likes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,074 ▲32819.15 ▲4.725.21 ▲3.6140.52 ▼1.07
Dashboard /wp-admin2,397 ▲2089.36 ▲4.32228.91 ▲109.5041.18 ▼0.92
Posts /wp-admin/edit.php2,309 ▲2176.23 ▲4.2284.10 ▲42.0732.63 ▼6.28
Add New Post /wp-admin/post-new.php1,596 ▲7719.97 ▼3.42692.67 ▼7.1237.84 ▼18.75
Media Library /wp-admin/upload.php1,445 ▲576.66 ▲2.46110.07 ▲11.1942.73 ▼1.55
oacs SPL /wp-admin/crb_carbon_fields_container_oacs_spl.php260.440.0616.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 123× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Capability_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Field_Icon\\Providers\\Icon_Provider_Interface' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-field-icon/core/Providers/Dashicons_Provider.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Field/Field.php:17
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Field_Icon\\Providers\\Icon_Provider_Interface' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-field-icon/core/Providers/Font_Awesome_Provider.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Container/Broken_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Pimple/Exception/FrozenServiceException.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Term_Condition' not found in wp-content/plugins/solid-post-likes/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Parent_Condition.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/crb_carbon_fields_container_oacs_spl.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_oacs_spl.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: post likes, like, like button

solid-post-likes/solid-post-likes.php 92% from 13 tests

This is the main PHP file of "Solid Post Likes" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin35,383 lines of code in 473 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1837,23111,17016,775
PHP1843,0157,55210,716
PO File309571,1762,595
CSS122621,1672,495
Sass5039632,044
JSON920573
Markdown4450146
SVG10039

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.56
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces30
Interfaces6
Traits0
Classes154
▷ Abstract classes117.14%
▷ Concrete classes14392.86%
▷ Final classes21.40%
Methods1,007
▷ Static methods11111.02%
▷ Public methods82882.22%
▷ Protected methods16616.48%
▷ Private methods131.29%
Functions115
▷ Named functions2521.74%
▷ Anonymous functions9078.26%
Constants37
▷ Global constants821.62%
▷ Class constants2978.38%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin