90% sau-syntax

Code Review | Sau Syntax

WordPress plugin Sau Syntax scored90%from 54 tests.

About plugin

  • Plugin page: sau-syntax
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Sep 30, 2014
  • Number of updates: 20
  • Update frequency: every 13.7 days
  • Top authors: sauhi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Sau Syntax
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.0042.14 ▼3.92
Dashboard /wp-admin3.57 ▲0.0055.46 ▼0.34
Posts /wp-admin/edit.php3.68 ▲0.0055.21 ▼9.17
Add New Post /wp-admin/post-new.php6.15 ▲0.0094.34 ▼24.18
Media Library /wp-admin/upload.php3.49 ▲0.0038.65 ▲1.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Sau Syntax
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.30 ▼0.281.80 ▼0.0441.44 ▼1.18
Dashboard /wp-admin2,195 ▲215.69 ▼0.0092.05 ▼0.6338.54 ▼15.90
Posts /wp-admin/edit.php2,103 ▼02.00 ▲0.0239.09 ▼8.2034.14 ▼7.95
Add New Post /wp-admin/post-new.php1,526 ▼017.69 ▲0.01651.38 ▼46.9453.77 ▼7.89
Media Library /wp-admin/upload.php1,394 ▼94.22 ▼0.0498.78 ▼2.2349.33 ▲4.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: highlighting, highlighter, sau syntax, syntax, syntax highlighter

sau-syntax/syntax.php 92% from 13 tests

The main file in "Sau Syntax" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sau-syntax.php" instead of "syntax.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1081

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected