74% trinxypost

Code Review | Trinxypost

WordPress plugin Trinxypost scored74%from 54 tests.

About plugin

  • Plugin page: trinxypost
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Nov 12, 2020
  • Latest release: Nov 23, 2020
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: trinxy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 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: ▼0.10MB] [CPU: ▼8.51ms] Passed 4 tests

Server-side resources used by Trinxypost
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.30 ▼4.35
Dashboard /wp-admin3.32 ▼0.0351.71 ▼11.95
Posts /wp-admin/edit.php3.37 ▲0.0148.16 ▲2.89
Add New Post /wp-admin/post-new.php5.51 ▼0.3877.88 ▼20.63
Media Library /wp-admin/upload.php3.24 ▲0.0141.00 ▲9.35

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Trinxypost
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲12513.50 ▼0.657.81 ▲5.9641.73 ▼0.27
Dashboard /wp-admin2,212 ▲355.64 ▲0.0391.00 ▼1.8138.13 ▼0.86
Posts /wp-admin/edit.php2,114 ▲172.01 ▲0.0640.43 ▲5.2035.18 ▲1.48
Add New Post /wp-admin/post-new.php6,639 ▲5,11027.26 ▲4.17998.85 ▲345.3466.36 ▲2.35
Media Library /wp-admin/upload.php1,414 ▲204.08 ▼0.1598.46 ▼4.3341.85 ▼9.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please take a closer look at the following
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: img_2 in wp-content/plugins/trinxypost/includes/image_array.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/trinxypost/trinxypost.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/trinxypost/includes/image_post_meta.php:11
    • > PHP Notice
      Undefined variable: img_3 in wp-content/plugins/trinxypost/includes/image_array.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/trinxypost/includes/comment_and_autor.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trinxypost/includes/admin_settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/trinxypost/includes/full_post_content.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trinxypost/includes/admin_page_settings.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/trinxypost/includes/page_html.php:24
    • > PHP Notice
      Undefined variable: img_4 in wp-content/plugins/trinxypost/includes/image_array.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: social media, gallery, posts, instagram

trinxypost/trinxypost.php Passed 13 tests

The primary PHP file in "Trinxypost" version 1.1 is used by WordPress to initiate all plugin functionality
107 characters long description:
Display your (or others) instagram posts or make a gallery of instagram images. Easy to setup, easy to use!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,173 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS210555586
PHP1363124495
JavaScript19091
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions21
▷ Named functions21100.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 were not PNG files found in your plugin