78% syngency

Code Review | Syngency

WordPress plugin Syngency scored78%from 54 tests.

About plugin

  • Plugin page: syngency
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.3
  • WordPress version: 6.3.1
  • First release: Apr 10, 2020
  • Latest release: Nov 10, 2020
  • Number of updates: 8
  • Update frequency: every 29.9 days
  • Top authors: syngency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /527 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.92ms] Passed 4 tests

This is a short check of server-side resources used by Syngency
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1844.76 ▲2.68
Dashboard /wp-admin3.57 ▲0.2654.96 ▲4.22
Posts /wp-admin/edit.php3.62 ▲0.2653.71 ▼2.84
Add New Post /wp-admin/post-new.php6.10 ▲0.2194.72 ▼0.40
Media Library /wp-admin/upload.php3.43 ▲0.1947.04 ▲9.76
Syngency /wp-admin/options-general.php?page=syngency-admin3.3735.63

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Syngency
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5116.06 ▲1.821.68 ▼0.4442.89 ▼6.39
Dashboard /wp-admin2,218 ▲416.61 ▲0.94137.34 ▲39.6341.42 ▼3.22
Posts /wp-admin/edit.php2,111 ▲84.12 ▲2.0879.88 ▲33.7133.26 ▼3.67
Add New Post /wp-admin/post-new.php1,548 ▲2024.86 ▲1.66770.73 ▲82.5440.64 ▼12.11
Media Library /wp-admin/upload.php1,425 ▲255.95 ▲1.85160.46 ▲54.8149.39 ▲6.32
Syngency /wp-admin/options-general.php?page=syngency-admin2,3726.28153.5759.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=syngency-admin
    • > Notice in wp-content/plugins/syngency/admin/class-syngency-admin.php+387
    Trying to access array offset on value of type bool

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
  • 89× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\TestCase' not found in wp-content/plugins/syngency/vendor/liquid/liquid/tests/Liquid/TemplateTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\AbstractTag' not found in wp-content/plugins/syngency/vendor/liquid/liquid/src/Liquid/Tag/TagIncrement.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\TestCase' not found in wp-content/plugins/syngency/vendor/liquid/liquid/tests/Liquid/Tag/TagUnlessTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\TestCase' not found in wp-content/plugins/syngency/vendor/liquid/liquid/tests/Liquid/Tag/TagRawTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\TestCase' not found in wp-content/plugins/syngency/vendor/liquid/liquid/tests/Liquid/LiquidTest.php:14
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/syngency/vendor/liquid/liquid/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/syngency/vendor/liquid/liquid/examples/advanced.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\LiquidException' not found in wp-content/plugins/syngency/vendor/liquid/liquid/src/Liquid/Exception/ParseException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\Exception\\FilesystemException' not found in wp-content/plugins/syngency/vendor/liquid/liquid/src/Liquid/Exception/NotFoundException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\TestCase' not found in wp-content/plugins/syngency/vendor/liquid/liquid/tests/Liquid/Tag/TagBlockTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Liquid\\AbstractTag' not found in wp-content/plugins/syngency/vendor/liquid/liquid/src/Liquid/Tag/TagExtends.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in syngency/assets to your readme.txt
You can take inspiration from this readme.txt

syngency/syngency.php Passed 13 tests

The primary PHP file in "Syngency" version 1.3.0 is used by WordPress to initiate all plugin functionality
73 characters long description:
Displays Syngency divisions, models, and galleries on your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin8,539 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP1201,9733,7677,483
liquid12746431
Markdown4980193
HTML11800146
JSON300129
PO File24040114
YAML16022
XML11013
JavaScript1308

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.24
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces7
Interfaces1
Traits0
Classes126
▷ Abstract classes32.38%
▷ Concrete classes12397.62%
▷ Final classes00.00%
Methods680
▷ Static methods598.68%
▷ Public methods62892.35%
▷ Protected methods355.15%
▷ Private methods172.50%
Functions21
▷ Named functions523.81%
▷ Anonymous functions1676.19%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin