84% syntax

Code Review | Syntax

WordPress plugin Syntax scored84%from 54 tests.

About plugin

  • Plugin page: syntax
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.7.4
  • WordPress version: 6.3.1
  • First release: May 15, 2017
  • Latest release: May 16, 2017
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: modularwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.58ms] Passed 4 tests

Analyzing server-side resources used by Syntax
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.56 ▼17.50
Dashboard /wp-admin3.33 ▼0.0150.20 ▼12.29
Posts /wp-admin/edit.php3.38 ▲0.0251.47 ▲1.40
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.93 ▲6.09
Media Library /wp-admin/upload.php3.25 ▲0.0250.48 ▲12.36

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Syntax
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.121.73 ▼0.7339.43 ▼12.18
Dashboard /wp-admin2,198 ▲185.63 ▼0.0393.72 ▼1.0942.99 ▲3.02
Posts /wp-admin/edit.php2,112 ▲122.05 ▲0.0238.07 ▼3.4431.50 ▼4.14
Add New Post /wp-admin/post-new.php6,234 ▲4,70619.17 ▼3.88932.54 ▲307.8554.44 ▼1.66
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.02102.84 ▼6.8744.91 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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 | 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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syntax/syntax.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: code

syntax/syntax.php 92% from 13 tests

"Syntax" version 0.9.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes

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 plugin203 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23121133
PHP1216070

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

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