74% dm-future-posts

Code Review | dm-future-posts

WordPress plugin dm-future-posts scored74%from 54 tests.

About plugin

  • Plugin page: dm-future-posts
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.8
  • WordPress version: 6.3.1
  • First release: Jun 29, 2017
  • Latest release: Jun 29, 2017
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: dmpink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.93MB] [CPU: ▼53.95ms] Passed 4 tests

This is a short check of server-side resources used by dm-future-posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.403.95 ▼38.44
Dashboard /wp-admin2.08 ▼1.225.95 ▼48.39
Posts /wp-admin/edit.php2.08 ▼1.285.95 ▼46.89
Add New Post /wp-admin/post-new.php2.08 ▼3.815.43 ▼82.07
Media Library /wp-admin/upload.php2.08 ▼1.155.98 ▼23.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

dm-future-posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▲0.031.87 ▼0.1044.35 ▲0.30
Dashboard /wp-admin2,195 ▲155.64 ▼0.0384.94 ▼4.9838.95 ▼3.24
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0440.79 ▼2.2933.75 ▼5.70
Add New Post /wp-admin/post-new.php1,528 ▼723.30 ▲5.06650.46 ▲31.4655.49 ▼13.06
Media Library /wp-admin/upload.php1,400 ▲34.14 ▼0.06113.27 ▲10.7548.02 ▲1.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 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/dm-future-posts/dm-future-posts.php:89

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: posts

dm-future-posts/dm-future-posts.php Passed 13 tests

The entry point to "dm-future-posts" version 0.3 is a PHP file that has certain tags in its header comment area
111 characters long description:
Виджет. Выводит список постов с отложенной датой публикации.

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 plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141670

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.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin