68% recently

Code Review | Recently

WordPress plugin Recently scored68%from 54 tests.

About plugin

  • Plugin page: recently
  • Plugin version: 4.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2015
  • Latest release: May 20, 2023
  • Number of updates: 29
  • Update frequency: every 99.5 days
  • Top authors: hcabrera (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

400+ active /9,504 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.87MB] [CPU: ▲1.12ms] Passed 4 tests

An overview of server-side resources used by Recently
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.8941.49 ▲0.15
Dashboard /wp-admin4.17 ▲0.8649.50 ▲3.12
Posts /wp-admin/edit.php4.22 ▲0.8649.33 ▲1.39
Add New Post /wp-admin/post-new.php6.77 ▲0.8885.21 ▼0.19
Media Library /wp-admin/upload.php4.10 ▲0.8642.77 ▲9.27
Recently /wp-admin/options-general.php?page=recently4.1936.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
recently_rand
can_compress_scripts
widget_recently
db_upgraded
widget_recent-posts
theysaidso_admin_options
recently_config
recently_ver

Browser metrics Passed 4 tests

An overview of browser requirements for Recently
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.07 ▼0.281.95 ▲0.3839.84 ▼7.76
Dashboard /wp-admin2,196 ▲165.56 ▼0.0882.70 ▼18.3737.03 ▼5.32
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0233.77 ▼2.8933.04 ▼1.02
Add New Post /wp-admin/post-new.php6,370 ▲4,83227.59 ▲4.27891.52 ▲244.9754.73 ▲1.07
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.0392.50 ▼8.1739.49 ▼6.58
Recently /wp-admin/options-general.php?page=recently1,3682.1633.8734.56

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/recently/uninstall.php+70
    rmdir(wp-content/uploads/recently): Directory not empty
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recently
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/recently/src/Admin/admin-page.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recently/src/Widget/Widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Recently\\REST\\Endpoint' not found in wp-content/plugins/recently/src/REST/ThemesEndpoint.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/recently/src/REST/Endpoint.php:6
    • > PHP Notice
      Undefined variable: current in wp-content/plugins/recently/src/Admin/screen-tools.php on line 2
    • > PHP Fatal error
      Uncaught Error: Interface 'Recently\\Container\\ContainerConfigurationInterface' not found in wp-content/plugins/recently/src/Container/RecentlyConfiguration.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Recently\\REST\\Endpoint' not found in wp-content/plugins/recently/src/REST/ThumbnailsEndpoint.php:4
    • > PHP Notice
      Undefined variable: current in wp-content/plugins/recently/src/Admin/screen-debug.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'Recently\\REST\\Endpoint' not found in wp-content/plugins/recently/src/REST/WidgetEndpoint.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/recently/src/Widget/form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Recently\\Block\\Block' not found in wp-content/plugins/recently/src/Block/Widget/Widget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: recent, widget, posts, recently

recently/recently.php 92% from 13 tests

The main PHP script in "Recently" version 4.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,088 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
PHP449771,9714,064
SVG1002,671
JavaScript9154221,170
CSS1412931693
JSON1000490

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity22.14
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity4.87
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces11
Interfaces1
Traits1
Classes26
▷ Abstract classes27.69%
▷ Concrete classes2492.31%
▷ Final classes00.00%
Methods163
▷ Static methods1911.66%
▷ Public methods12979.14%
▷ Protected methods31.84%
▷ Private methods3119.02%
Functions23
▷ Named functions28.70%
▷ Anonymous functions2191.30%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin