84% riveted

Code Review | Riveted

WordPress plugin Riveted scored84%from 54 tests.

About plugin

  • Plugin page: riveted
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Jun 5, 2014
  • Number of updates: 8
  • Update frequency: every 13.4 days
  • Top authors: robflaherty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,747 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Riveted
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.46 ▲3.15
Dashboard /wp-admin3.33 ▲0.0248.33 ▼7.44
Posts /wp-admin/edit.php3.38 ▲0.0244.35 ▼4.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.16 ▼6.48
Media Library /wp-admin/upload.php3.25 ▲0.0238.52 ▲2.78
Riveted /wp-admin/options-general.php?page=riveted3.2231.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 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

Riveted: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.13 ▼0.162.13 ▲0.2342.60 ▼0.87
Dashboard /wp-admin2,196 ▲195.54 ▼0.0987.43 ▼13.3839.92 ▼7.13
Posts /wp-admin/edit.php2,083 ▼172.13 ▲0.1436.95 ▲2.5233.15 ▼6.61
Add New Post /wp-admin/post-new.php1,529 ▼1117.39 ▼1.07667.72 ▲16.7258.30 ▼8.87
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.0397.49 ▼7.7441.44 ▼9.65
Riveted /wp-admin/options-general.php?page=riveted8182.0324.1430.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/riveted/riveted.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: google analytics, analytics

riveted/riveted.php Passed 13 tests

The principal PHP file in "Riveted" v. 1.1 is loaded by WordPress automatically on each request
51 characters long description:
A Google Analytics plugin for measuring active time

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1201660
JavaScript2062

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
PNG images were not found in this plugin