74% 365projectorg-widget

Code Review | 365Project.org Widget

WordPress plugin 365Project.org Widget scored 74% 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: 5.9.2
  • 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,164 total downloads


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

Analyzing server-side resources used by 365Project.org Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.096.53 ▼25.02
Dashboard /wp-admin2.06 ▼1.358.40 ▼25.16
Posts /wp-admin/edit.php2.06 ▼1.587.56 ▼29.53
Add New Post /wp-admin/post-new.php2.06 ▼4.926.47 ▼1,294.92
Media Library /wp-admin/upload.php2.06 ▼1.246.58 ▼19.57

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

365Project.org Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.94 ▲0.366.91 ▲0.962.59 ▼0.28
Dashboard /wp-admin2,871 ▲136.15 ▼0.00123.65 ▼10.52164.54 ▲3.89
Posts /wp-admin/edit.php2,691 ▲33.23 ▲0.0168.34 ▼0.69179.53 ▲24.65
Add New Post /wp-admin/post-new.php1,752 ▼621.49 ▼0.01457.27 ▼2.95161.96 ▼0.86
Media Library /wp-admin/upload.php1,695 ▼05.44 ▼0.09153.47 ▲13.52184.04 ▼6.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5409
    The called constructor method for WP_Widget in tsfproject_widget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_tsfproject_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just 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_filter() in wp-content/plugins/365projectorg-widget/365projectorg-widget.php:11

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 errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

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

The primary PHP file in "365Project.org Widget" version 1.0 is used by WordPress to initiate all plugin functionality
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 considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin