84% scoopit-for-jetpack

Code Review | Scoop.it for Jetpack

WordPress plugin Scoop.it for Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: scoopit-for-jetpack
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Dec 8, 2016
  • Number of updates: 14
  • Update frequency: every 96.3 days
  • Top authors: jeherve (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /4,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.79ms] Passed 4 tests

Analyzing server-side resources used by Scoop.it for Jetpack
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.30 ▼3.13
Dashboard /wp-admin3.31 ▲0.0146.06 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0147.15 ▼3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.25 ▼22.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.47 ▲2.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scoop.it for Jetpack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.20 ▼1.084.57 ▲2.8043.25 ▼2.15
Dashboard /wp-admin2,210 ▲185.85 ▲0.9798.78 ▼11.9440.84 ▼0.81
Posts /wp-admin/edit.php2,098 ▲91.98 ▼0.0533.59 ▼6.5635.33 ▲0.33
Add New Post /wp-admin/post-new.php1,529 ▼423.04 ▼0.18629.90 ▼86.0344.91 ▼14.17
Media Library /wp-admin/upload.php1,392 ▲14.31 ▲0.04100.77 ▲2.5440.17 ▼4.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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
Good news, no errors were detected

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scoopit-for-jetpack/scoopit-for-jetpack.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: scoopit, jetpack, sharing, wordpresscom

scoopit-for-jetpack/scoopit-for-jetpack.php 92% from 13 tests

The primary PHP file in "Scoop.it for Jetpack" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171686

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
scoopit.png4.07KB0.41KB▼ 89.98%
scoopit-white.png4.50KB0.71KB▼ 84.30%