84% remote-site-posts-for-elementor

Code Review | Remote site posts For Elementor

WordPress plugin Remote site posts For Elementor scored 84% from 54 tests.

About plugin

  • Plugin page: remote-site-posts...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2019
  • Latest release: Dec 8, 2019
  • Number of updates: 7
  • Update frequency: every 10.0 days
  • Top authors: pmbaldha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Remote site posts For Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.54 ▲7.26
Dashboard /wp-admin3.33 ▲0.0248.37 ▲0.64
Posts /wp-admin/edit.php3.38 ▲0.0244.82 ▼8.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.36 ▼4.26
Media Library /wp-admin/upload.php3.25 ▲0.0236.65 ▼0.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Remote site posts For Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.20 ▼1.151.83 ▼0.0342.36 ▲1.47
Dashboard /wp-admin2,221 ▲355.77 ▼0.2794.24 ▼45.6839.68 ▼7.59
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0436.31 ▼3.6935.42 ▼0.11
Add New Post /wp-admin/post-new.php1,527 ▲717.71 ▼5.47668.91 ▼19.2655.26 ▼7.64
Media Library /wp-admin/upload.php1,406 ▲184.20 ▼0.1993.97 ▼18.4141.98 ▼4.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however 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: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/remote-site-posts-for-elementor/widgets/class-elementor-remote-site-posts-widget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: remote, fetch, rest, post, posts

remote-site-posts-for-elementor/remote-site-posts-for-elementor.php 92% from 13 tests

The main file in "Remote site posts For Elementor" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin197 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP258210197

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.50
▷ Minimum class complexity8.00
▷ Maximum class complexity9.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin