84% simple-fast-highlighter

Code Review | Simple Fast Highlighter

WordPress plugin Simple Fast Highlighter scored84%from 54 tests.

About plugin

  • Plugin page: simple-fast-highl...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Aug 31, 2013
  • Latest release: Apr 8, 2017
  • Number of updates: 31
  • Update frequency: every 42.8 days
  • Top authors: michielve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,407 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Simple Fast Highlighter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.20 ▲4.02
Dashboard /wp-admin3.32 ▲0.0245.71 ▼3.82
Posts /wp-admin/edit.php3.37 ▲0.0250.10 ▼4.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.37 ▼20.33
Media Library /wp-admin/upload.php3.24 ▲0.0237.37 ▲2.68

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Fast Highlighter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.36 ▲0.011.81 ▲0.1339.24 ▼0.44
Dashboard /wp-admin2,198 ▲185.62 ▼0.0589.68 ▲5.4641.39 ▼2.41
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0040.07 ▲0.5836.41 ▲0.71
Add New Post /wp-admin/post-new.php1,526 ▼223.69 ▲0.56702.98 ▲36.0953.22 ▼0.19
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0092.27 ▼1.7441.66 ▼0.17

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-fast-highlighter/simple-fast-highlighter.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: code, highlighter, sourcecode, highlight, syntax

simple-fast-highlighter/simple-fast-highlighter.php Passed 13 tests

The main file in "Simple Fast Highlighter" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Fast syntax highlighter written in Javascript.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin607 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing 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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sfh_closed.png11.87KB3.27KB▼ 72.46%
sfh_open_enabled.png27.54KB8.91KB▼ 67.64%
sfh_open_disabled.png25.54KB8.10KB▼ 68.28%