84% external-content

Code Review | External Content

WordPress plugin External Content scored 84% from 54 tests.

About plugin

  • Plugin page: external-content
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.4
  • WordPress version: 5.8.1
  • First release: May 8, 2015
  • Latest release: Jan 3, 2016
  • Number of updates: 10
  • Update frequency: every 24.0 days
  • Top authors: ipm-frommen (70%)tfrommen (40%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,200 total downloads


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.12MB] [CPU: ▼139.41ms] Passed 4 tests

Server-side resources used by External Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1035.76 ▲1.84
Dashboard /wp-admin3.23 ▲0.1746.90 ▲1.44
Posts /wp-admin/edit.php3.27 ▲0.1744.41 ▼1.07
Add New Post /wp-admin/post-new.php5.52 ▲0.0991.76 ▼559.86
Media Library /wp-admin/upload.php3.11 ▲0.1034.11 ▲3.90
All External Content /wp-admin/edit.php?post_type=external_content3.1533.94
Add New /wp-admin/post-new.php?post_type=external_content3.2145.59

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

External Content: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲14615.92 ▲0.329.44 ▼0.8248.73 ▲3.99
Dashboard /wp-admin3,005 ▲715.96 ▼0.28170.39 ▲5.80108.61 ▼4.26
Posts /wp-admin/edit.php2,774 ▲352.73 ▲0.0070.19 ▲1.7285.61 ▼0.49
Add New Post /wp-admin/post-new.php1,695 ▼2,00718.81 ▲3.65385.44 ▼86.78103.82 ▲0.00
Media Library /wp-admin/upload.php1,842 ▲355.04 ▼0.01150.58 ▼8.52114.64 ▼5.27
All External Content /wp-admin/edit.php?post_type=external_content1,4312.6263.3269.71
Add New /wp-admin/post-new.php?post_type=external_content2,9418.90227.53137.64

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • external_content_version

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'tfrommen\\Autoloader\\Rule' not found in wp-content/plugins/external-content/inc/Autoloader/NamespaceRule.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: content, external, url

external-content/external-content.php 92% from 13 tests

The primary PHP file in "External Content" version 1.4.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

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
There were no executable files found in this plugin471 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File1182050

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity2.86
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin