84% moveon-campaigns

Code Review | MoveOn Campaigns

WordPress plugin MoveOn Campaigns scored84%from 54 tests.

About plugin

  • Plugin page: moveon-campaigns
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mattoperry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,150 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.45ms] Passed 4 tests

Server-side resources used by MoveOn Campaigns
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.16 ▼7.00
Dashboard /wp-admin3.34 ▲0.0344.86 ▼4.60
Posts /wp-admin/edit.php3.39 ▲0.0347.06 ▼0.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.87 ▼6.15
Media Library /wp-admin/upload.php3.26 ▲0.0333.98 ▲2.08

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_moveon-campaigns-widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by MoveOn Campaigns
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼1.051.68 ▼0.0640.21 ▼4.47
Dashboard /wp-admin2,209 ▲215.86 ▼0.02101.14 ▼14.2840.27 ▼6.78
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.57 ▲2.2034.82 ▲3.33
Add New Post /wp-admin/post-new.php1,539 ▲2023.11 ▼0.06592.49 ▼98.5058.36 ▲3.75
Media Library /wp-admin/upload.php1,388 ▼04.24 ▼0.00101.88 ▲1.0745.19 ▲1.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_moveon-campaigns-widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/moveon-campaigns/class.moveon-campaigns-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 uses markdown syntax to describe your plugin to the world
4 plugin tags: engagement, politics, sidebar, widget

moveon-campaigns/moveon-campaigns.php Passed 13 tests

The main file in "MoveOn Campaigns" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
Feature MoveOn campaigns on your blog or website -- includes sidebar widgets, a content shortcode and more

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected97 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34810297

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin