84% wp-scheduled-links

Code Review | WP Scheduled Links

WordPress plugin WP Scheduled Links scored84%from 54 tests.

About plugin

  • Plugin page: wp-scheduled-links
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: Feb 10, 2015
  • Number of updates: 7
  • Update frequency: every 38.2 days
  • Top authors: fahmiadib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼6.63ms] Passed 4 tests

An overview of server-side resources used by WP Scheduled Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0132.44 ▼5.94
Dashboard /wp-admin3.32 ▼0.0344.53 ▼18.66
Posts /wp-admin/edit.php3.37 ▲0.0151.58 ▲1.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.67 ▼1.73
Media Library /wp-admin/upload.php3.24 ▲0.0135.69 ▼0.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Scheduled Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.271.59 ▼0.2438.40 ▼6.36
Dashboard /wp-admin2,203 ▲185.90 ▲0.06105.57 ▼12.7742.30 ▼3.32
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0438.78 ▲1.5936.91 ▲0.08
Add New Post /wp-admin/post-new.php6,226 ▲4,71218.79 ▲1.33835.44 ▲137.8470.46 ▲18.59
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0697.16 ▼5.8941.61 ▼8.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× 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/wp-scheduled-links/wp-scheduled-links.php:25

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: links

wp-scheduled-links/wp-scheduled-links.php Passed 13 tests

The main PHP file in "WP Scheduled Links" ver. 1.02 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Schedule when link(s) should appear on your post/page

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
Good job! No executable or dangerous file extensions detected462 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS13963384
PHP1214378

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin