74% 365projectorg-widget

Code Review | 365Project.org Widget

WordPress plugin 365Project.org Widget scored74%from 54 tests.

About plugin

  • Plugin page: 365projectorg-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 20, 2013
  • Latest release: Jan 20, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,396 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.69MB] [CPU: ▼53.19ms] Passed 4 tests

This is a short check of server-side resources used by 365Project.org Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.1611.11 ▼35.01
Dashboard /wp-admin2.31 ▼0.9911.56 ▼42.13
Posts /wp-admin/edit.php2.31 ▼1.0412.28 ▼43.23
Add New Post /wp-admin/post-new.php2.31 ▼3.5712.96 ▼92.40
Media Library /wp-admin/upload.php2.31 ▼0.9211.00 ▼28.86

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/365projectorg-widget/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_tsfproject_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

365Project.org Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.25 ▼1.111.72 ▼0.4143.57 ▼0.43
Dashboard /wp-admin2,221 ▲185.84 ▲0.81110.37 ▼4.0939.76 ▼3.23
Posts /wp-admin/edit.php2,103 ▲62.04 ▼0.0237.00 ▼0.8036.15 ▲1.25
Add New Post /wp-admin/post-new.php1,545 ▲1423.33 ▲0.32629.00 ▼76.5255.98 ▼13.27
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.1397.40 ▼0.4843.89 ▼1.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in tsfproject_widget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_tsfproject_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/365projectorg-widget/365projectorg-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("kaileylampert.com/donate/")
The official readme.txt is a good inspiration

365projectorg-widget/365projectorg-widget.php Passed 13 tests

The main PHP script in "365Project.org Widget" version 1.0 is automatically included on every request by WordPress
38 characters long description:
Show photos from a 365project.org 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
Everything looks great! No dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121984

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin