84% scope-publisher

Code Review | Scope Publisher

WordPress plugin Scope Publisher scored84%from 54 tests.

About plugin

  • Plugin page: scope-publisher
  • Plugin version: 1.1.10
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 28, 2018
  • Latest release: Mar 6, 2023
  • Number of updates: 35
  • Update frequency: every 49.9 days
  • Top authors: thescopecom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,252 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.05ms] Passed 4 tests

This is a short check of server-side resources used by Scope Publisher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.69 ▼0.81
Dashboard /wp-admin3.38 ▲0.0452.73 ▼9.29
Posts /wp-admin/edit.php3.50 ▲0.1447.84 ▼2.20
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.32 ▼19.90
Media Library /wp-admin/upload.php3.31 ▲0.0837.21 ▲1.64

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 2 new tables, 7 new options
New tables
wp_scope_publisher
wp_scope_publisher_categories
New WordPress options
db_upgraded
scope_db_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Scope Publisher
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.38 ▼0.052.36 ▲0.7741.76 ▼1.74
Dashboard /wp-admin2,215 ▲355.64 ▼0.03100.96 ▲8.1780.66 ▲40.68
Posts /wp-admin/edit.php2,123 ▲232.02 ▲0.0141.00 ▲1.9532.99 ▼4.99
Add New Post /wp-admin/post-new.php1,543 ▲1722.91 ▼0.72694.48 ▲29.1061.28 ▲8.07
Media Library /wp-admin/upload.php1,414 ▲144.29 ▲0.05103.02 ▼5.6772.93 ▲25.17

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/scope-publisher/admin/partials/scope-publisher-admin-display.php:14

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: content-curation

scope-publisher/scope-publisher.php Passed 13 tests

"Scope Publisher" version 1.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Scope publisher plugin. Required for curators who want to publish their articles from Scope.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected503 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10145408419
JavaScript112062
CSS14022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods34
▷ Static methods38.82%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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