84% wcf-widget

Code Review | Wordpress Cross Feed Widget

WordPress plugin Wordpress Cross Feed Widget scored84%from 54 tests.

About plugin

  • Plugin page: wcf-widget
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jul 31, 2018
  • Latest release: Aug 3, 2018
  • Number of updates: 11
  • Update frequency: every 0.7 days
  • Top authors: sumitsetu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Wordpress Cross Feed Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.62 ▼9.65
Dashboard /wp-admin3.34 ▼0.0158.53 ▼8.20
Posts /wp-admin/edit.php3.39 ▲0.0350.25 ▲0.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.43 ▼4.00
Media Library /wp-admin/upload.php3.26 ▲0.0337.52 ▼0.20

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_wcf_widget
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Wordpress Cross Feed Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.351.69 ▲0.0244.20 ▲1.28
Dashboard /wp-admin2,195 ▲185.56 ▼0.1096.65 ▼4.9546.22 ▲4.31
Posts /wp-admin/edit.php2,103 ▲61.98 ▼0.0435.37 ▼1.1434.32 ▼8.60
Add New Post /wp-admin/post-new.php1,526 ▼222.90 ▼0.12661.43 ▼1.0051.09 ▼3.54
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.09104.14 ▼2.3542.76 ▼3.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_wcf_widget
    • can_compress_scripts
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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/wcf-widget/wcf-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wcf-widget === )
The official readme.txt might help

wcf-widget/wcf-widget.php Passed 13 tests

The main file in "Wordpress Cross Feed Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
A Wordpress Widget Plugin For Connecting Websites Feed

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin114 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12738114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin