67% simple-theme-options

Code Review | Simple Tracking

WordPress plugin Simple Tracking scored67%from 54 tests.

About plugin

  • Plugin page: simple-theme-options
  • Plugin version: 1.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Aug 28, 2023
  • Number of updates: 21
  • Update frequency: every 165.2 days
  • Top authors: chrsinteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /13,636 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.86MB] [CPU: ▼32.50ms] Passed 4 tests

A check of server-side resources used by Simple Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0231.43 ▼9.56
Dashboard /wp-admin3.08 ▼0.2226.30 ▼24.36
Posts /wp-admin/edit.php3.09 ▼0.2727.49 ▼20.60
Add New Post /wp-admin/post-new.php3.09 ▼2.8023.84 ▼72.68
Media Library /wp-admin/upload.php3.09 ▼0.1424.57 ▼12.34

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Simple Tracking: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.25 ▼0.101.91 ▲0.2544.41 ▼0.48
Dashboard /wp-admin2,232 ▲585.63 ▼0.0395.42 ▲5.3546.95 ▲3.20
Posts /wp-admin/edit.php2,137 ▲402.02 ▲0.0640.06 ▲4.3536.57 ▲2.93
Add New Post /wp-admin/post-new.php1,541 ▲1523.05 ▼0.39597.61 ▼75.1159.85 ▲6.08
Media Library /wp-admin/upload.php1,434 ▲344.28 ▲0.14105.47 ▲3.2745.78 ▼0.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/simple-theme-options/chrs-simple-options.php+92
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-theme-options/chrs-simple-options.php
    • > /wp-content/plugins/simple-theme-options/instructions.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-theme-options/shortcodes.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/simple-theme-options/input-global.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (screenshot-1.png)
Please take inspiration from this readme.txt

simple-theme-options/chrs-simple-options.php 77% from 13 tests

The main file in "Simple Tracking" v. 1.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and 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
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-theme-options.php" instead of "chrs-simple-options.php")

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
Everything looks great! No dangerous files found in this plugin642 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP55227572
SVG30336
CSS15034

PHP code Passed 2 tests

An short overview of 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.17
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png189.07KB70.84KB▼ 62.53%