84% get-remote-posts-list

Code Review | Get remote posts list

WordPress plugin Get remote posts list scored84%from 54 tests.

About plugin

  • Plugin page: get-remote-posts-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2018
  • Latest release: Oct 23, 2019
  • Number of updates: 7
  • Update frequency: every 84.0 days
  • Top authors: dnyanraja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.03ms] Passed 4 tests

This is a short check of server-side resources used by Get remote posts list
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.96 ▼3.14
Dashboard /wp-admin3.33 ▼0.0147.15 ▼11.26
Posts /wp-admin/edit.php3.38 ▲0.0346.01 ▲3.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.66 ▼2.66
Media Library /wp-admin/upload.php3.25 ▲0.0333.49 ▼3.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_remote-wp-posts-rest-api

Browser metrics Passed 4 tests

Checking browser requirements for Get remote posts list
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲5714.34 ▼0.251.54 ▲0.0242.60 ▲0.73
Dashboard /wp-admin2,192 ▲145.54 ▼0.0683.79 ▼12.9043.61 ▼1.51
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0436.06 ▼0.2532.42 ▼3.31
Add New Post /wp-admin/post-new.php1,528 ▼923.24 ▲4.89615.41 ▼50.4649.76 ▼27.04
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0493.82 ▼6.7143.98 ▼1.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_remote-wp-posts-rest-api
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/get-remote-posts-list/remote-posts-from-api.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

get-remote-posts-list/remote-posts-from-api.php 92% from 13 tests

This is the main PHP file of "Get remote posts list" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("get-remote-posts-list.php" instead of "remote-posts-from-api.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291988

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin