10% activitysparks

Code Review | Activity Sparks

WordPress plugin Activity Sparks scored 10% from 54 tests.

About plugin

  • Plugin page: activitysparks
  • Plugin version: 0.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2.3
  • WordPress version: 5.9.2
  • First release: Aug 15, 2009
  • Latest release: Aug 18, 2015
  • Number of updates: 22
  • Update frequency: every 99.7 days
  • Top authors: pantsonhead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,978 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/activitysparks/activitysparks.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; activitysparks has a deprecated constructor

Server metrics [RAM: ▼2.38MB] [CPU: ▼339.05ms] Passed 4 tests

Analyzing server-side resources used by Activity Sparks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.99 ▼1.534.40 ▼45.56
Dashboard /wp-admin2.00 ▼1.404.09 ▼27.19
Posts /wp-admin/edit.php2.01 ▼1.634.94 ▼33.13
Add New Post /wp-admin/post-new.php2.00 ▼4.975.03 ▼1,250.31
Media Library /wp-admin/upload.php2.00 ▼1.293.74 ▼21.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
widget_activitysparks

Browser metrics Passed 4 tests

Activity Sparks: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.00 ▼0.075.77 ▼0.452.22 ▼0.34
Dashboard /wp-admin2,895 ▲406.14 ▼0.03117.01 ▼17.51157.10 ▼6.39
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0262.22 ▼0.61137.70 ▼4.32
Add New Post /wp-admin/post-new.php1,661 ▼4915.60 ▼5.08392.90 ▼51.97162.17 ▲10.14
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.02139.68 ▲1.99189.18 ▲4.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/activitysparks/activitysparks.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; activitysparks has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_activitysparks

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

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/activitysparks/activitysparks.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: widget, chart, activity, sidebar, comments...

activitysparks/activitysparks.php Passed 13 tests

"Activity Sparks" version 0.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
A widget to display a customizable sparkline graph of post and/or comment activity.

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 plugin270 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14229270

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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